ReactOS 0.4.17-dev-1190-g4c812f4
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;
21
22public:
23 CDeviceManager(void);
24 ~CDeviceManager(void);
25
26 bool Create(
29 _In_opt_z_ LPCWSTR lpMachineName,
30 _In_ int nCmdShow
31 );
32
33private:
35 HWND hwnd,
36 UINT msg,
39 );
40
41 bool Initialize(
42 _In_z_ LPCTSTR lpCaption,
43 _In_ int nCmdShow
44 );
45
46 int Run();
47 void Uninitialize(void);
48
51 );
52
53 LRESULT OnDestroy(void);
54 LRESULT OnSize(void);
55
58 );
59
62 );
63
67 );
68
69 void OnActivate(void);
70
71 bool CreateToolBar(void);
72 bool CreateStatusBar(void);
73
74 void UpdateToolbar(void);
75
78 _In_ INT PartId,
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(
96 _In_ bool ScanForChanges
97 );
98};
99
ViewType
Definition: DeviceView.h:9
Type
Definition: Type.h:7
#define msg(x)
Definition: auth_time.c:54
HWND hStatusBar
Definition: main.c:23
@ Create
Definition: registry.c:563
HINSTANCE hInstance
Definition: charmap.c:19
void UpdateToolbar(void)
Definition: MainWindow.cpp:365
bool CreateStatusBar(void)
Definition: MainWindow.cpp:338
LRESULT OnCreate(_In_ HWND hwnd)
Definition: MainWindow.cpp:433
CDeviceManager(void)
Definition: MainWindow.cpp:80
bool CreateToolBar(void)
Definition: MainWindow.cpp:288
LRESULT OnContext(_In_ LPARAM lParam)
Definition: MainWindow.cpp:570
LRESULT OnCommand(_In_ WPARAM wParam, LPARAM lParam)
Definition: MainWindow.cpp:576
BOOL m_RefreshPending
Definition: MainWindow.h:19
static LRESULT CALLBACK MainWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: MainWindow.cpp:721
HWND m_hStatusBar
Definition: MainWindow.h:15
LRESULT OnSize(void)
Definition: MainWindow.cpp:463
bool RefreshView(_In_ ViewType Type, _In_ bool ScanForChanges)
Definition: MainWindow.cpp:245
void OnActivate(void)
Definition: MainWindow.cpp:696
CDeviceView * m_DeviceView
Definition: MainWindow.h:13
bool StatusBarLoadString(_In_ HWND hStatusBar, _In_ INT PartId, _In_ HINSTANCE hInstance, _In_ UINT uID)
Definition: MainWindow.cpp:411
CAtlStringW m_szMainWndClass
Definition: MainWindow.h:12
LRESULT OnNotify(_In_ LPARAM lParam)
Definition: MainWindow.cpp:498
LRESULT OnDestroy(void)
Definition: MainWindow.cpp:702
~CDeviceManager(void)
Definition: MainWindow.cpp:91
void Uninitialize(void)
Definition: MainWindow.cpp:184
bool m_ClosePending
Definition: MainWindow.h:20
bool MainWndMenuHint(_In_ WORD CmdId, _In_ const MENU_HINT *HintArray, _In_ DWORD HintsCount, _In_ UINT DefHintId)
Definition: MainWindow.cpp:206
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 short WORD
Definition: ntddk_ex.h:93
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned int UINT
Definition: sysinfo.c:13
LONG_PTR LPARAM
Definition: minwindef.h:175
LONG_PTR LRESULT
Definition: minwindef.h:176
UINT_PTR WPARAM
Definition: minwindef.h:174
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60
LPCSTR LPCTSTR
Definition: ms-dtyp.idl:130
#define _In_z_
Definition: no_sal2.h:164
#define _In_opt_z_
Definition: no_sal2.h:218
#define _In_
Definition: no_sal2.h:158
_In_ UINT uID
Definition: shlwapi.h:156
void UpdateStatusBar(void)
Definition: solitaire.cpp:150
UINT HintId
Definition: precomp.h:90
WORD CmdId
Definition: precomp.h:89
const uint16_t * LPCWSTR
Definition: typedefs.h:57
int32_t INT
Definition: typedefs.h:58
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
static void Initialize()
Definition: xlate.c:212