ReactOS 0.4.15-dev-7705-g2320c37
MainWindow.h
Go to the documentation of this file.
1#pragma once
2#include "DeviceView.h"
3
4typedef struct _MENU_HINT
5{
9
11{
12 CAtlStringW m_szMainWndClass;
20
21public:
22 CDeviceManager(void);
23 ~CDeviceManager(void);
24
25 bool Create(
28 _In_opt_z_ LPCWSTR lpMachineName,
29 _In_ int nCmdShow
30 );
31
32private:
34 HWND hwnd,
35 UINT msg,
38 );
39
40 bool Initialize(
41 _In_z_ LPCTSTR lpCaption,
42 _In_ int nCmdShow
43 );
44
45 int Run();
46 void Uninitialize(void);
47
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
ViewType
Definition: DeviceView.h:7
Type
Definition: Type.h:7
#define msg(x)
Definition: auth_time.c:54
HWND hStatusBar
Definition: main.c:36
@ Create
Definition: registry.c:563
HINSTANCE hInstance
Definition: charmap.c:19
void UpdateToolbar(void)
Definition: MainWindow.cpp:364
bool CreateStatusBar(void)
Definition: MainWindow.cpp:337
LRESULT OnCreate(_In_ HWND hwnd)
Definition: MainWindow.cpp:432
CDeviceManager(void)
Definition: MainWindow.cpp:80
bool CreateToolBar(void)
Definition: MainWindow.cpp:287
LRESULT OnContext(_In_ LPARAM lParam)
Definition: MainWindow.cpp:569
LRESULT OnCommand(_In_ WPARAM wParam, LPARAM lParam)
Definition: MainWindow.cpp:575
BOOL m_RefreshPending
Definition: MainWindow.h:19
static LRESULT CALLBACK MainWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: MainWindow.cpp:714
HWND m_hStatusBar
Definition: MainWindow.h:15
LRESULT OnSize(void)
Definition: MainWindow.cpp:462
bool RefreshView(_In_ ViewType Type, _In_ bool ScanForChanges)
Definition: MainWindow.cpp:244
void OnActivate(void)
Definition: MainWindow.cpp:689
CDeviceView * m_DeviceView
Definition: MainWindow.h:13
bool StatusBarLoadString(_In_ HWND hStatusBar, _In_ INT PartId, _In_ HINSTANCE hInstance, _In_ UINT uID)
Definition: MainWindow.cpp:410
CAtlStringW m_szMainWndClass
Definition: MainWindow.h:12
LRESULT OnNotify(_In_ LPARAM lParam)
Definition: MainWindow.cpp:497
LRESULT OnDestroy(void)
Definition: MainWindow.cpp:695
~CDeviceManager(void)
Definition: MainWindow.cpp:90
void Uninitialize(void)
Definition: MainWindow.cpp:183
bool MainWndMenuHint(_In_ WORD CmdId, _In_ const MENU_HINT *HintArray, _In_ DWORD HintsCount, _In_ UINT DefHintId)
Definition: MainWindow.cpp:205
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define CALLBACK
Definition: compat.h:35
struct _MENU_HINT * PMENU_HINT
struct _MENU_HINT MENU_HINT
HINSTANCE hInst
Definition: dxdiag.c:13
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:63
#define _In_z_
Definition: ms_sal.h:313
#define _In_opt_z_
Definition: ms_sal.h:314
#define _In_
Definition: ms_sal.h:308
unsigned int UINT
Definition: ndis.h:50
void UpdateStatusBar(void)
Definition: solitaire.cpp:150
UINT HintId
Definition: precomp.h:90
WORD CmdId
Definition: precomp.h:89
int32_t INT
Definition: typedefs.h:58
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207
static void Initialize()
Definition: xlate.c:212
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185