Synchronize with trunk revision 59636 (just before Alex's CreateProcess revamp).
[reactos.git] / base / applications / mscutils / devmgmt_new / MainWindow.h
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 CMainWindow
11 {
12 CAtlString m_szMainWndClass;
13 CDeviceView *m_DeviceView;
14 HWND m_hMainWnd;
15 HWND m_hStatusBar;
16 HWND m_hToolBar;
17 int m_CmdShow;
18
19 private:
20 static LRESULT CALLBACK MainWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
21
22 LRESULT OnCreate(HWND hwnd);
23 LRESULT OnDestroy();
24 LRESULT OnSize();
25 LRESULT OnNotify(LPARAM lParam);
26 LRESULT OnContext(LPARAM lParam);
27 LRESULT OnCommand(WPARAM wParam, LPARAM lParam);
28
29 BOOL CreateToolBar();
30 BOOL CreateStatusBar();
31 BOOL StatusBarLoadString(HWND hStatusBar, INT PartId, HINSTANCE hInstance, UINT uID);
32
33 public:
34 CMainWindow(void);
35 ~CMainWindow(void);
36
37 BOOL Initialize(LPCTSTR lpCaption, int nCmdShow);
38 INT Run();
39 VOID Uninitialize();
40
41
42 };
43