mirror of
https://github.com/reactos/reactos.git
synced 2024-10-27 08:35:28 +00:00
527f2f9057
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
44 lines
907 B
C++
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();
|
|
|
|
|
|
};
|
|
|