ReactOS  0.4.15-dev-1033-gd7d716a
MainWindow.h
Go to the documentation of this file.
1 #pragma once
2 #include "DeviceView.h"
3 
4 typedef struct _MENU_HINT
5 {
6  WORD CmdId;
7  UINT HintId;
9 
11 {
18  int m_CmdShow;
20 
21 public:
22  CDeviceManager(void);
23  ~CDeviceManager(void);
24 
25  bool Create(
28  _In_opt_z_ LPCWSTR lpMachineName,
29  _In_ int nCmdShow
30  );
31 
32 private:
34  HWND hwnd,
35  UINT msg,
36  WPARAM wParam,
38  );
39 
40  bool Initialize(
41  _In_z_ LPCTSTR lpCaption,
42  _In_ int nCmdShow
43  );
44 
45  int Run();
46  void Uninitialize(void);
47 
49  _In_ HWND hwnd
50  );
51 
52  LRESULT OnDestroy(void);
53  LRESULT OnSize(void);
54 
57  );
58 
61  );
62 
66  );
67 
68  void OnActivate(void);
69 
70  bool CreateToolBar(void);
71  bool CreateStatusBar(void);
72 
73  void UpdateToolbar(void);
74 
77  _In_ INT PartId,
79  _In_ UINT uID
80  );
81 
82  void UpdateStatusBar(
83  _In_ bool InMenuLoop
84  );
85 
86  bool MainWndMenuHint(
87  _In_ WORD CmdId,
88  _In_ const MENU_HINT *HintArray,
89  _In_ DWORD HintsCount,
90  _In_ UINT DefHintId
91  );
92 
93  bool RefreshView(
95  _In_ bool ScanForChanges
96  );
97 };
98 
LRESULT OnContext(_In_ LPARAM lParam)
Definition: MainWindow.cpp:569
bool Initialize(_In_z_ LPCTSTR lpCaption, _In_ int nCmdShow)
Definition: MainWindow.cpp:135
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
LRESULT OnCommand(_In_ WPARAM wParam, LPARAM lParam)
Definition: MainWindow.cpp:575
LRESULT OnNotify(_In_ LPARAM lParam)
Definition: MainWindow.cpp:497
#define _In_opt_z_
Definition: no_sal2.h:221
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
UINT HintId
Definition: precomp.h:89
Type
Definition: Type.h:6
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
~CDeviceManager(void)
Definition: MainWindow.cpp:90
bool StatusBarLoadString(_In_ HWND hStatusBar, _In_ INT PartId, _In_ HINSTANCE hInstance, _In_ UINT uID)
Definition: MainWindow.cpp:410
#define CALLBACK
Definition: compat.h:35
bool CreateStatusBar(void)
Definition: MainWindow.cpp:337
UINT_PTR WPARAM
Definition: windef.h:207
void UpdateToolbar(void)
Definition: MainWindow.cpp:364
int32_t INT
Definition: typedefs.h:58
WPARAM wParam
Definition: combotst.c:138
void UpdateStatusBar(_In_ bool InMenuLoop)
Definition: MainWindow.cpp:235
HINSTANCE hInstance
Definition: charmap.c:20
LRESULT OnSize(void)
Definition: MainWindow.cpp:462
unsigned int BOOL
Definition: ntddk_ex.h:94
WORD CmdId
Definition: precomp.h:88
void OnActivate(void)
Definition: MainWindow.cpp:692
LONG_PTR LPARAM
Definition: windef.h:208
CStringT< wchar_t, StrTraitATL< wchar_t, ChTraitsCRT< wchar_t > > > CAtlStringW
Definition: atlstr.h:126
struct _MENU_HINT MENU_HINT
bool RefreshView(_In_ ViewType Type, _In_ bool ScanForChanges)
Definition: MainWindow.cpp:244
BOOL m_RefreshPending
Definition: MainWindow.h:19
ViewType
Definition: DeviceView.h:6
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
HWND hStatusBar
Definition: main.cpp:35
CDeviceView * m_DeviceView
Definition: MainWindow.h:13
bool MainWndMenuHint(_In_ WORD CmdId, _In_ const MENU_HINT *HintArray, _In_ DWORD HintsCount, _In_ UINT DefHintId)
Definition: MainWindow.cpp:205
LRESULT OnCreate(_In_ HWND hwnd)
Definition: MainWindow.cpp:432
bool CreateToolBar(void)
Definition: MainWindow.cpp:287
#define _In_
Definition: no_sal2.h:204
HWND m_hStatusBar
Definition: MainWindow.h:15
HINSTANCE hInst
Definition: dxdiag.c:13
LRESULT OnDestroy(void)
Definition: MainWindow.cpp:698
#define _In_z_
Definition: no_sal2.h:239
CDeviceManager(void)
Definition: MainWindow.cpp:80
unsigned int UINT
Definition: ndis.h:50
static LRESULT CALLBACK MainWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: MainWindow.cpp:717
CAtlStringW m_szMainWndClass
Definition: MainWindow.h:12
#define msg(x)
Definition: auth_time.c:54
bool Create(_In_ HWND hWndParent, _In_ HINSTANCE hInst, _In_opt_z_ LPCWSTR lpMachineName, _In_ int nCmdShow)
Definition: MainWindow.cpp:95
LONG_PTR LRESULT
Definition: windef.h:209
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60
LPARAM lParam
Definition: combotst.c:139
struct _MENU_HINT * PMENU_HINT
void Uninitialize(void)
Definition: MainWindow.cpp:183