[MSPAINT]
[reactos.git] / reactos / base / applications / mspaint / sizebox.h
1 /*
2 * PROJECT: PAINT for ReactOS
3 * LICENSE: LGPL
4 * FILE: base/applications/mspaint/sizebox.h
5 * PURPOSE: Window procedure of the size boxes
6 * PROGRAMMERS: Benedikt Freisen
7 * Katayama Hirofumi MZ
8 */
9
10 class CSizeboxWindow : public CWindowImpl<CSizeboxWindow>
11 {
12 public:
13 DECLARE_WND_CLASS_EX(_T("Sizebox"), CS_DBLCLKS, COLOR_HIGHLIGHT)
14
15 BEGIN_MSG_MAP(CSizeboxWindow)
16 MESSAGE_HANDLER(WM_SETCURSOR, OnSetCursor)
17 MESSAGE_HANDLER(WM_LBUTTONDOWN, OnLButtonDown)
18 MESSAGE_HANDLER(WM_MOUSEMOVE, OnMouseMove)
19 MESSAGE_HANDLER(WM_LBUTTONUP, OnLButtonUp)
20 MESSAGE_HANDLER(WM_CAPTURECHANGED, OnCaptureChanged)
21 MESSAGE_HANDLER(WM_KEYDOWN, OnKeyDown)
22 END_MSG_MAP()
23
24 LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
25 LRESULT OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
26 LRESULT OnMouseMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
27 LRESULT OnLButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
28 LRESULT OnCaptureChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
29 LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
30 };