[APPLICATIONS] Improve the FILE header section. Brought to you by Adam Stachowicz...
[reactos.git] / reactos / base / applications / mspaint / toolbox.h
1 /*
2 * PROJECT: PAINT for ReactOS
3 * LICENSE: LGPL
4 * FILE: base/applications/mspaint/toolbox.h
5 * PURPOSE: Window procedure of the main window and all children apart from
6 * hPalWin, hToolSettings and hSelection
7 * PROGRAMMERS: Benedikt Freisen
8 */
9
10 class CToolBox : public CWindowImpl<CMainWindow>
11 {
12 public:
13 DECLARE_WND_CLASS_EX(_T("ToolBox"), CS_DBLCLKS, COLOR_BTNFACE)
14
15 BEGIN_MSG_MAP(CToolBox)
16 MESSAGE_HANDLER(WM_CREATE, OnCreate)
17 MESSAGE_HANDLER(WM_SETCURSOR, OnSetCursor)
18 MESSAGE_HANDLER(WM_SYSCOLORCHANGE, OnSysColorChange)
19 MESSAGE_HANDLER(WM_COMMAND, OnCommand)
20 MESSAGE_HANDLER(WM_TOOLSMODELTOOLCHANGED, OnToolsModelToolChanged)
21 END_MSG_MAP()
22
23 CWindow toolbar;
24
25 LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
26 LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
27 LRESULT OnSysColorChange(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
28 LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
29 LRESULT OnToolsModelToolChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
30 };