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 #pragma once 11 12 class CSizeboxWindow : public CWindowImpl<CSizeboxWindow> 13 { 14 public: 15 DECLARE_WND_CLASS_EX(_T("Sizebox"), CS_DBLCLKS, COLOR_HIGHLIGHT) 16 17 BEGIN_MSG_MAP(CSizeboxWindow) 18 MESSAGE_HANDLER(WM_SETCURSOR, OnSetCursor) 19 MESSAGE_HANDLER(WM_LBUTTONDOWN, OnLButtonDown) 20 MESSAGE_HANDLER(WM_MOUSEMOVE, OnMouseMove) 21 MESSAGE_HANDLER(WM_LBUTTONUP, OnLButtonUp) 22 MESSAGE_HANDLER(WM_CAPTURECHANGED, OnCaptureChanged) 23 MESSAGE_HANDLER(WM_KEYDOWN, OnKeyDown) 24 END_MSG_MAP() 25 26 LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 27 LRESULT OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 28 LRESULT OnMouseMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 29 LRESULT OnLButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 30 LRESULT OnCaptureChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 31 LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 32 }; 33