ReactOS  0.4.12-dev-57-g7050ac4
imgarea.h
Go to the documentation of this file.
1 /*
2  * PROJECT: PAINT for ReactOS
3  * LICENSE: LGPL
4  * FILE: base/applications/mspaint/imgarea.h
5  * PURPOSE: Window procedure of the main window and all children apart from
6  * hPalWin, hToolSettings and hSelection
7  * PROGRAMMERS: Benedikt Freisen
8  * Katayama Hirofumi MZ
9  */
10 
11 #pragma once
12 
13 class CImgAreaWindow : public CWindowImpl<CMainWindow>
14 {
15 public:
17 
32  END_MSG_MAP()
33 
35 
36 private:
37  LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
38  LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
39  LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
40  LRESULT OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
41  LRESULT OnRButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
42  LRESULT OnLButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
43  LRESULT OnRButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
44  LRESULT OnMouseMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
45  LRESULT OnMouseLeave(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
46  LRESULT OnImageModelDimensionsChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
47  LRESULT OnImageModelImageChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
48  LRESULT OnCaptureChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
49  LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
50 
51  void drawZoomFrame(int mouseX, int mouseY);
52  void cancelDrawing();
53 };
#define WM_LBUTTONDOWN
Definition: winuser.h:1752
#define WM_CAPTURECHANGED
Definition: winuser.h:1784
#define DECLARE_WND_CLASS_EX(WndClassName, style, bkgnd)
Definition: atlwin.h:1867
void drawZoomFrame(int mouseX, int mouseY)
Definition: imgarea.cpp:31
WPARAM wParam
Definition: combotst.c:138
LRESULT OnRButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:174
UINT_PTR WPARAM
Definition: windef.h:207
LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:67
LONG_PTR LPARAM
Definition: windef.h:208
#define WM_SETCURSOR
Definition: winuser.h:1618
#define WM_MOUSELEAVE
Definition: commctrl.h:4935
#define WM_KEYDOWN
Definition: winuser.h:1691
#define WM_RBUTTONDOWN
Definition: winuser.h:1755
#define _T(x)
Definition: vfdio.h:22
LRESULT OnLButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:194
unsigned int BOOL
Definition: ntddk_ex.h:94
#define WM_IMAGEMODELDIMENSIONSCHANGED
Definition: definitions.h:246
#define WM_SIZE
Definition: winuser.h:1593
#define END_MSG_MAP()
Definition: atlwin.h:1780
unsigned int UINT
Definition: ndis.h:50
#define WM_RBUTTONUP
Definition: winuser.h:1756
#define WM_PAINT
Definition: winuser.h:1602
#define COLOR_BTNFACE
Definition: winuser.h:918
#define WM_IMAGEMODELIMAGECHANGED
Definition: definitions.h:247
#define CS_DBLCLKS
Definition: winuser.h:646
LRESULT OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:154
LRESULT OnImageModelImageChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:411
LRESULT OnImageModelDimensionsChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:405
#define WM_LBUTTONUP
Definition: winuser.h:1753
LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:129
LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:257
#define WM_MOUSEMOVE
Definition: winuser.h:1751
LRESULT OnMouseLeave(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:397
#define BEGIN_MSG_MAP(theClass)
Definition: atlwin.h:1761
BOOL drawing
Definition: imgarea.h:34
void cancelDrawing()
Definition: imgarea.cpp:215
#define MESSAGE_HANDLER(msg, func)
Definition: atlwin.h:1789
LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:99
LRESULT OnMouseMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:299
LRESULT OnRButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:278
LONG_PTR LRESULT
Definition: windef.h:209
LPARAM lParam
Definition: combotst.c:139
LRESULT OnCaptureChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:247