c2624f732e30fb5e608729d68f1ad12f16abd3a9
[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 */
8
9 class CSizeboxWindow : public CWindowImpl<CSizeboxWindow>
10 {
11 public:
12 DECLARE_WND_CLASS_EX(_T("Sizebox"), CS_DBLCLKS, COLOR_HIGHLIGHT)
13
14 BEGIN_MSG_MAP(CSizeboxWindow)
15 MESSAGE_HANDLER(WM_SETCURSOR, OnSetCursor)
16 MESSAGE_HANDLER(WM_LBUTTONDOWN, OnLButtonDown)
17 MESSAGE_HANDLER(WM_MOUSEMOVE, OnMouseMove)
18 MESSAGE_HANDLER(WM_LBUTTONUP, OnLButtonUp)
19 MESSAGE_HANDLER(WM_CANCELMODE, OnCancelMode)
20 END_MSG_MAP()
21
22 LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
23 LRESULT OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
24 LRESULT OnMouseMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
25 LRESULT OnLButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
26 LRESULT OnCancelMode(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
27 };