ReactOS
0.4.16-dev-736-g28b802b
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
21
public
:
22
CDeviceManager
(
void
);
23
~CDeviceManager
(
void
);
24
25
bool
Create
(
26
_In_
HWND
hWndParent
,
27
_In_
HINSTANCE
hInst
,
28
_In_opt_z_
LPCWSTR
lpMachineName,
29
_In_
int
nCmdShow
30
);
31
32
private
:
33
static
LRESULT
CALLBACK
MainWndProc
(
34
HWND
hwnd
,
35
UINT
msg
,
36
WPARAM
wParam
,
37
LPARAM
lParam
38
);
39
40
bool
Initialize
(
41
_In_z_
LPCTSTR
lpCaption,
42
_In_
int
nCmdShow
43
);
44
45
int
Run
();
46
void
Uninitialize
(
void
);
47
48
LRESULT
OnCreate
(
49
_In_
HWND
hwnd
50
);
51
52
LRESULT
OnDestroy
(
void
);
53
LRESULT
OnSize
(
void
);
54
55
LRESULT
OnNotify
(
56
_In_
LPARAM
lParam
57
);
58
59
LRESULT
OnContext
(
60
_In_
LPARAM
lParam
61
);
62
63
LRESULT
OnCommand
(
64
_In_
WPARAM
wParam
,
65
LPARAM
lParam
66
);
67
68
void
OnActivate
(
void
);
69
70
bool
CreateToolBar
(
void
);
71
bool
CreateStatusBar
(
void
);
72
73
void
UpdateToolbar
(
void
);
74
75
bool
StatusBarLoadString
(
76
_In_
HWND
hStatusBar
,
77
_In_
INT
PartId,
78
_In_
HINSTANCE
hInstance
,
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
(
94
_In_
ViewType
Type
,
95
_In_
bool
ScanForChanges
96
);
97
};
98
DeviceView.h
ViewType
ViewType
Definition:
DeviceView.h:7
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:190
CDeviceManager::m_hMainWnd
HWND m_hMainWnd
Definition:
MainWindow.h:14
CDeviceManager::UpdateToolbar
void UpdateToolbar(void)
Definition:
MainWindow.cpp:364
CDeviceManager::CreateStatusBar
bool CreateStatusBar(void)
Definition:
MainWindow.cpp:337
CDeviceManager::OnCreate
LRESULT OnCreate(_In_ HWND hwnd)
Definition:
MainWindow.cpp:432
CDeviceManager::CDeviceManager
CDeviceManager(void)
Definition:
MainWindow.cpp:80
CDeviceManager::CreateToolBar
bool CreateToolBar(void)
Definition:
MainWindow.cpp:287
CDeviceManager::OnContext
LRESULT OnContext(_In_ LPARAM lParam)
Definition:
MainWindow.cpp:569
CDeviceManager::OnCommand
LRESULT OnCommand(_In_ WPARAM wParam, LPARAM lParam)
Definition:
MainWindow.cpp:575
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:714
CDeviceManager::m_hStatusBar
HWND m_hStatusBar
Definition:
MainWindow.h:15
CDeviceManager::OnSize
LRESULT OnSize(void)
Definition:
MainWindow.cpp:462
CDeviceManager::RefreshView
bool RefreshView(_In_ ViewType Type, _In_ bool ScanForChanges)
Definition:
MainWindow.cpp:244
CDeviceManager::OnActivate
void OnActivate(void)
Definition:
MainWindow.cpp:689
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:410
CDeviceManager::m_szMainWndClass
CAtlStringW m_szMainWndClass
Definition:
MainWindow.h:12
CDeviceManager::OnNotify
LRESULT OnNotify(_In_ LPARAM lParam)
Definition:
MainWindow.cpp:497
CDeviceManager::OnDestroy
LRESULT OnDestroy(void)
Definition:
MainWindow.cpp:695
CDeviceManager::m_hMenu
HMENU m_hMenu
Definition:
MainWindow.h:17
CDeviceManager::~CDeviceManager
~CDeviceManager(void)
Definition:
MainWindow.cpp:90
CDeviceManager::Uninitialize
void Uninitialize(void)
Definition:
MainWindow.cpp:183
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:205
CDeviceView
Definition:
DeviceView.h:16
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
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
WORD
unsigned short WORD
Definition:
ntddk_ex.h:93
void
Definition:
nsiface.idl:2307
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:63
UINT
unsigned int UINT
Definition:
ndis.h:50
_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
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
INT
int32_t INT
Definition:
typedefs.h:58
hwnd
_In_ LONG _In_ HWND hwnd
Definition:
winddi.h:4023
LPARAM
LONG_PTR LPARAM
Definition:
windef.h:208
LRESULT
LONG_PTR LRESULT
Definition:
windef.h:209
WPARAM
UINT_PTR WPARAM
Definition:
windef.h:207
Initialize
static void Initialize()
Definition:
xlate.c:212
LPCTSTR
const CHAR * LPCTSTR
Definition:
xmlstorage.h:193
LPCWSTR
const WCHAR * LPCWSTR
Definition:
xmlstorage.h:185
dll
win32
devmgr
devmgmt
MainWindow.h
Generated on Tue Feb 11 2025 06:03:47 for ReactOS by
1.9.6