ReactOS  0.4.15-dev-4857-g47842d7
selection.h
Go to the documentation of this file.
1 /*
2  * PROJECT: PAINT for ReactOS
3  * LICENSE: LGPL
4  * FILE: base/applications/mspaint/selection.h
5  * PURPOSE: Window procedure of the selection window
6  * PROGRAMMERS: Benedikt Freisen
7  * Katayama Hirofumi MZ
8  */
9 
10 #pragma once
11 
12 class CSelectionWindow : public CWindowImpl<CSelectionWindow>
13 {
14 public:
16  {
17  }
18 
19  BOOL IsMoved() const { return m_bMoved; }
20  void IsMoved(BOOL bMoved) { m_bMoved = bMoved; }
21 
23 
25 
43  END_MSG_MAP()
44 
45  LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
47  LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
59  LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
60  LRESULT OnMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
61 
62 private:
66  int m_iAction;
71 
72  int IdentifyCorner(int iXPos, int iYPos, int iWidth, int iHeight);
73 };
74 
LRESULT OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:100
#define WM_SYSCOLORCHANGE
Definition: winuser.h:1613
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
BOOL IsMoved() const
Definition: selection.h:19
#define WM_LBUTTONDOWN
Definition: winuser.h:1763
LRESULT OnToolsModelSettingsChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:229
#define WM_MOUSEWHEEL
Definition: treelist.c:96
COLORREF m_rgbBack
Definition: selection.h:70
LRESULT OnMouseWheel(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:240
#define WM_CAPTURECHANGED
Definition: winuser.h:1795
#define DECLARE_WND_CLASS_EX(WndClassName, style, bkgnd)
Definition: atlwin.h:1970
LRESULT OnSelectionModelRefreshNeeded(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:234
LRESULT OnCaptureChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:191
LRESULT OnMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:167
#define WM_MOVE
Definition: winuser.h:1597
UINT_PTR WPARAM
Definition: windef.h:207
LRESULT OnToolsModelZoomChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:245
LRESULT OnLButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:173
#define WM_PALETTEMODELCOLORCHANGED
Definition: precomp.h:39
WPARAM wParam
Definition: combotst.c:138
LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:57
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
#define WM_SETCURSOR
Definition: winuser.h:1623
#define WM_KEYDOWN
Definition: winuser.h:1702
LONG_PTR LPARAM
Definition: windef.h:208
void IsMoved(BOOL bMoved)
Definition: selection.h:20
#define _T(x)
Definition: vfdio.h:22
#define END_MSG_MAP()
Definition: atlwin.h:1883
DWORD COLORREF
Definition: windef.h:300
LRESULT OnPaletteModelColorChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:224
#define WM_PAINT
Definition: winuser.h:1607
#define WM_SELECTIONMODELREFRESHNEEDED
Definition: precomp.h:43
#define WM_TOOLSMODELSETTINGSCHANGED
Definition: precomp.h:37
#define COLOR_BTNFACE
Definition: winuser.h:922
#define CS_DBLCLKS
Definition: winuser.h:646
void ForceRefreshSelectionContents()
Definition: selection.cpp:24
LRESULT OnSysColorChange(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:87
LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:212
#define WM_LBUTTONUP
Definition: winuser.h:1764
LRESULT OnEraseBkgnd(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:72
unsigned int UINT
Definition: ndis.h:50
#define WM_MOUSEMOVE
Definition: winuser.h:1762
LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:78
#define BEGIN_MSG_MAP(theClass)
Definition: atlwin.h:1864
static const LPCTSTR m_lpszCursorLUT[9]
Definition: selection.h:63
#define MESSAGE_HANDLER(msg, func)
Definition: atlwin.h:1892
int IdentifyCorner(int iXPos, int iYPos, int iWidth, int iHeight)
Definition: selection.cpp:34
#define WM_TOOLSMODELZOOMCHANGED
Definition: precomp.h:38
#define WM_CREATE
Definition: winuser.h:1595
#define const
Definition: zconf.h:230
#define WM_ERASEBKGND
Definition: winuser.h:1612
LONG_PTR LRESULT
Definition: windef.h:209
LRESULT OnMouseMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:118
LPARAM lParam
Definition: combotst.c:139
LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: selection.cpp:94