ReactOS
0.4.17-dev-1190-g4c812f4
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
;
8
}
MENU_HINT
, *
PMENU_HINT
;
9
10
class
CDeviceManager
11
{
12
CAtlStringW
m_szMainWndClass
;
13
CDeviceView
*
m_DeviceView
;
14
HWND
m_hMainWnd
;
15
HWND
m_hStatusBar
;
16
HWND
m_hToolBar
;
17
HMENU
m_hMenu
;
18
int
m_CmdShow
;
19
BOOL
m_RefreshPending
;
20
bool
m_ClosePending
;
21
22
public
:
23
CDeviceManager
(
void
);
24
~CDeviceManager
(
void
);
25
26
bool
Create
(
27
_In_
HWND
hWndParent
,
28
_In_
HINSTANCE
hInst
,
29
_In_opt_z_
LPCWSTR
lpMachineName,
30
_In_
int
nCmdShow
31
);
32
33
private
:
34
static
LRESULT
CALLBACK
MainWndProc
(
35
HWND
hwnd
,
36
UINT
msg
,
37
WPARAM
wParam
,
38
LPARAM
lParam
39
);
40
41
bool
Initialize
(
42
_In_z_
LPCTSTR
lpCaption,
43
_In_
int
nCmdShow
44
);
45
46
int
Run
();
47
void
Uninitialize
(
void
);
48
49
LRESULT
OnCreate
(
50
_In_
HWND
hwnd
51
);
52
53
LRESULT
OnDestroy
(
void
);
54
LRESULT
OnSize
(
void
);
55
56
LRESULT
OnNotify
(
57
_In_
LPARAM
lParam
58
);
59
60
LRESULT
OnContext
(
61
_In_
LPARAM
lParam
62
);
63
64
LRESULT
OnCommand
(
65
_In_
WPARAM
wParam
,
66
LPARAM
lParam
67
);
68
69
void
OnActivate
(
void
);
70
71
bool
CreateToolBar
(
void
);
72
bool
CreateStatusBar
(
void
);
73
74
void
UpdateToolbar
(
void
);
75
76
bool
StatusBarLoadString
(
77
_In_
HWND
hStatusBar
,
78
_In_
INT
PartId,
79
_In_
HINSTANCE
hInstance
,
80
_In_
UINT
uID
81
);
82
83
void
UpdateStatusBar
(
84
_In_
bool
InMenuLoop
85
);
86
87
bool
MainWndMenuHint
(
88
_In_
WORD
CmdId,
89
_In_
const
MENU_HINT
*HintArray,
90
_In_
DWORD
HintsCount,
91
_In_
UINT
DefHintId
92
);
93
94
bool
RefreshView
(
95
_In_
ViewType
Type
,
96
_In_
bool
ScanForChanges
97
);
98
};
99
DeviceView.h
ViewType
ViewType
Definition:
DeviceView.h:9
Type
Type
Definition:
Type.h:7
msg
#define msg(x)
Definition:
auth_time.c:54
hStatusBar
HWND hStatusBar
Definition:
main.c:23
Create
@ Create
Definition:
registry.c:563
hInstance
HINSTANCE hInstance
Definition:
charmap.c:19
CDeviceManager
Definition:
MainWindow.h:11
CDeviceManager::Run
int Run()
Definition:
MainWindow.cpp:191
CDeviceManager::m_hMainWnd
HWND m_hMainWnd
Definition:
MainWindow.h:14
CDeviceManager::UpdateToolbar
void UpdateToolbar(void)
Definition:
MainWindow.cpp:365
CDeviceManager::CreateStatusBar
bool CreateStatusBar(void)
Definition:
MainWindow.cpp:338
CDeviceManager::OnCreate
LRESULT OnCreate(_In_ HWND hwnd)
Definition:
MainWindow.cpp:433
CDeviceManager::CDeviceManager
CDeviceManager(void)
Definition:
MainWindow.cpp:80
CDeviceManager::CreateToolBar
bool CreateToolBar(void)
Definition:
MainWindow.cpp:288
CDeviceManager::OnContext
LRESULT OnContext(_In_ LPARAM lParam)
Definition:
MainWindow.cpp:570
CDeviceManager::OnCommand
LRESULT OnCommand(_In_ WPARAM wParam, LPARAM lParam)
Definition:
MainWindow.cpp:576
CDeviceManager::m_RefreshPending
BOOL m_RefreshPending
Definition:
MainWindow.h:19
CDeviceManager::m_hToolBar
HWND m_hToolBar
Definition:
MainWindow.h:16
CDeviceManager::MainWndProc
static LRESULT CALLBACK MainWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition:
MainWindow.cpp:721
CDeviceManager::m_hStatusBar
HWND m_hStatusBar
Definition:
MainWindow.h:15
CDeviceManager::OnSize
LRESULT OnSize(void)
Definition:
MainWindow.cpp:463
CDeviceManager::RefreshView
bool RefreshView(_In_ ViewType Type, _In_ bool ScanForChanges)
Definition:
MainWindow.cpp:245
CDeviceManager::OnActivate
void OnActivate(void)
Definition:
MainWindow.cpp:696
CDeviceManager::m_DeviceView
CDeviceView * m_DeviceView
Definition:
MainWindow.h:13
CDeviceManager::StatusBarLoadString
bool StatusBarLoadString(_In_ HWND hStatusBar, _In_ INT PartId, _In_ HINSTANCE hInstance, _In_ UINT uID)
Definition:
MainWindow.cpp:411
CDeviceManager::m_szMainWndClass
CAtlStringW m_szMainWndClass
Definition:
MainWindow.h:12
CDeviceManager::OnNotify
LRESULT OnNotify(_In_ LPARAM lParam)
Definition:
MainWindow.cpp:498
CDeviceManager::OnDestroy
LRESULT OnDestroy(void)
Definition:
MainWindow.cpp:702
CDeviceManager::m_hMenu
HMENU m_hMenu
Definition:
MainWindow.h:17
CDeviceManager::~CDeviceManager
~CDeviceManager(void)
Definition:
MainWindow.cpp:91
CDeviceManager::Uninitialize
void Uninitialize(void)
Definition:
MainWindow.cpp:184
CDeviceManager::m_ClosePending
bool m_ClosePending
Definition:
MainWindow.h:20
CDeviceManager::m_CmdShow
int m_CmdShow
Definition:
MainWindow.h:18
CDeviceManager::MainWndMenuHint
bool MainWndMenuHint(_In_ WORD CmdId, _In_ const MENU_HINT *HintArray, _In_ DWORD HintsCount, _In_ UINT DefHintId)
Definition:
MainWindow.cpp:206
CDeviceView
Definition:
DeviceView.h:19
wParam
WPARAM wParam
Definition:
combotst.c:138
lParam
LPARAM lParam
Definition:
combotst.c:139
CALLBACK
#define CALLBACK
Definition:
compat.h:35
PMENU_HINT
struct _MENU_HINT * PMENU_HINT
MENU_HINT
struct _MENU_HINT MENU_HINT
hInst
HINSTANCE hInst
Definition:
dxdiag.c:13
WORD
unsigned short WORD
Definition:
ntddk_ex.h:93
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
UINT
unsigned int UINT
Definition:
sysinfo.c:13
void
Definition:
nsiface.idl:2307
LPARAM
LONG_PTR LPARAM
Definition:
minwindef.h:175
LRESULT
LONG_PTR LRESULT
Definition:
minwindef.h:176
WPARAM
UINT_PTR WPARAM
Definition:
minwindef.h:174
hWndParent
static HWND hWndParent
Definition:
syslink.c:32
HMENU
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition:
ordinal.c:60
LPCTSTR
LPCSTR LPCTSTR
Definition:
ms-dtyp.idl:130
_In_z_
#define _In_z_
Definition:
no_sal2.h:164
_In_opt_z_
#define _In_opt_z_
Definition:
no_sal2.h:218
_In_
#define _In_
Definition:
no_sal2.h:158
uID
_In_ UINT uID
Definition:
shlwapi.h:156
UpdateStatusBar
void UpdateStatusBar(void)
Definition:
solitaire.cpp:150
_MENU_HINT
Definition:
precomp.h:88
_MENU_HINT::HintId
UINT HintId
Definition:
precomp.h:90
_MENU_HINT::CmdId
WORD CmdId
Definition:
precomp.h:89
LPCWSTR
const uint16_t * LPCWSTR
Definition:
typedefs.h:57
INT
int32_t INT
Definition:
typedefs.h:58
hwnd
_In_ LONG _In_ HWND hwnd
Definition:
winddi.h:4023
Initialize
static void Initialize()
Definition:
xlate.c:212
dll
win32
devmgr
devmgmt
MainWindow.h
Generated on Tue Oct 20 2026 06:05:44 for ReactOS by
1.9.6