ReactOS  0.4.15-dev-5615-gc3644fd
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  {
18  }
19 
21  void cancelDrawing();
22  void finishDrawing();
23 
25 
45  END_MSG_MAP()
46 
47 private:
48  LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
50  LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
64  LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
66 
67  void drawZoomFrame(int mouseX, int mouseY);
68 };
#define WM_LBUTTONDOWN
Definition: winuser.h:1766
#define WM_MOUSEWHEEL
Definition: treelist.c:96
#define WM_CAPTURECHANGED
Definition: winuser.h:1798
#define DECLARE_WND_CLASS_EX(WndClassName, style, bkgnd)
Definition: atlwin.h:1998
void drawZoomFrame(int mouseX, int mouseY)
Definition: imgarea.cpp:33
LRESULT OnEraseBkGnd(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:105
UINT_PTR WPARAM
Definition: windef.h:207
WPARAM wParam
Definition: combotst.c:138
LRESULT OnRButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:203
CImgAreaWindow()
Definition: imgarea.h:16
LRESULT OnLButtonDblClk(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:192
#define FALSE
Definition: types.h:117
LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:69
unsigned int BOOL
Definition: ntddk_ex.h:94
LRESULT OnRButtonDblClk(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:213
#define WM_SETCURSOR
Definition: winuser.h:1626
#define WM_MOUSELEAVE
Definition: commctrl.h:4975
LRESULT OnCtlColorEdit(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:408
#define WM_KEYDOWN
Definition: winuser.h:1705
LONG_PTR LPARAM
Definition: windef.h:208
#define WM_RBUTTONDOWN
Definition: winuser.h:1769
#define _T(x)
Definition: vfdio.h:22
LRESULT OnLButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:224
void finishDrawing()
Definition: imgarea.cpp:415
#define WM_SIZE
Definition: winuser.h:1601
#define END_MSG_MAP()
Definition: atlwin.h:1911
#define WM_RBUTTONUP
Definition: winuser.h:1770
#define WM_PAINT
Definition: winuser.h:1610
#define WM_IMAGEMODELIMAGECHANGED
Definition: precomp.h:38
#define COLOR_BTNFACE
Definition: winuser.h:922
#define WM_LBUTTONDBLCLK
Definition: winuser.h:1768
#define CS_DBLCLKS
Definition: winuser.h:646
LRESULT OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:182
LRESULT OnImageModelImageChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:397
LRESULT OnImageModelDimensionsChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:391
#define WM_CTLCOLOREDIT
Definition: winuser.h:1757
#define WM_LBUTTONUP
Definition: winuser.h:1767
LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:157
LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:252
#define WM_IMAGEMODELDIMENSIONSCHANGED
Definition: precomp.h:37
unsigned int UINT
Definition: ndis.h:50
#define WM_MOUSEMOVE
Definition: winuser.h:1765
LRESULT OnMouseLeave(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:383
#define BEGIN_MSG_MAP(theClass)
Definition: atlwin.h:1892
BOOL drawing
Definition: imgarea.h:20
void cancelDrawing()
Definition: imgarea.cpp:238
#define MESSAGE_HANDLER(msg, func)
Definition: atlwin.h:1920
LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:123
LRESULT OnMouseMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:283
#define WM_RBUTTONDBLCLK
Definition: winuser.h:1771
LRESULT OnRButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:269
LRESULT OnMouseWheel(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: imgarea.cpp:403
#define WM_ERASEBKGND
Definition: winuser.h:1615
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:245