reactos/base/applications/mscutils/devmgmt_new/MainWindow.h
Amine Khaldi 527f2f9057 [SHELL/EXPERIMENTS]
* Create a branch for some evul shell experiments.

svn path=/branches/shell-experiments/; revision=61927
2014-02-02 19:37:27 +00:00

44 lines
907 B
C++

#pragma once
#include "DeviceView.h"
typedef struct _MENU_HINT
{
WORD CmdId;
UINT HintId;
} MENU_HINT, *PMENU_HINT;
class CMainWindow
{
CAtlString m_szMainWndClass;
CDeviceView *m_DeviceView;
HWND m_hMainWnd;
HWND m_hStatusBar;
HWND m_hToolBar;
int m_CmdShow;
private:
static LRESULT CALLBACK MainWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
LRESULT OnCreate(HWND hwnd);
LRESULT OnDestroy();
LRESULT OnSize();
LRESULT OnNotify(LPARAM lParam);
LRESULT OnContext(LPARAM lParam);
LRESULT OnCommand(WPARAM wParam, LPARAM lParam);
BOOL CreateToolBar();
BOOL CreateStatusBar();
BOOL StatusBarLoadString(HWND hStatusBar, INT PartId, HINSTANCE hInstance, UINT uID);
public:
CMainWindow(void);
~CMainWindow(void);
BOOL Initialize(LPCTSTR lpCaption, int nCmdShow);
INT Run();
VOID Uninitialize();
};