ReactOS  0.4.15-dev-5461-g062a8f2
winproc.h
Go to the documentation of this file.
1 /*
2  * PROJECT: PAINT for ReactOS
3  * LICENSE: LGPL
4  * FILE: base/applications/mspaint/winproc.h
5  * PURPOSE: Window procedure of the main window and all children apart from
6  * hPalWin, hToolSettings and hSelection
7  * PROGRAMMERS: Benedikt Freisen
8  */
9 
10 #pragma once
11 
12 class CMainWindow : public CWindowImpl<CMainWindow>
13 {
14 public:
16 
30  END_MSG_MAP()
31 
33  LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
34  LRESULT OnDestroy(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
35  LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
37  LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
40  LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
42  LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
44 
46  void saveImage(BOOL overwrite);
48  BOOL ConfirmSave();
49 };
#define WM_SYSCOLORCHANGE
Definition: winuser.h:1616
#define WM_INITMENUPOPUP
Definition: winuser.h:1736
#define WM_MOUSEWHEEL
Definition: treelist.c:96
#define DECLARE_WND_CLASS_EX(WndClassName, style, bkgnd)
Definition: atlwin.h:1998
UINT_PTR WPARAM
Definition: windef.h:207
LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:227
WPARAM wParam
Definition: combotst.c:138
LRESULT OnGetMinMaxInfo(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:375
LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:268
unsigned int BOOL
Definition: ntddk_ex.h:94
LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:390
void saveImage(BOOL overwrite)
Definition: winproc.cpp:90
#define WM_SETCURSOR
Definition: winuser.h:1626
#define WM_DROPFILES
Definition: winuser.h:1815
#define WM_KEYDOWN
Definition: winuser.h:1705
LONG_PTR LPARAM
Definition: windef.h:208
#define WM_DESTROY
Definition: winuser.h:1599
LRESULT OnDropFiles(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:214
Definition: uimain.c:88
#define _T(x)
Definition: vfdio.h:22
#define WM_SIZE
Definition: winuser.h:1601
#define END_MSG_MAP()
Definition: atlwin.h:1911
void InsertSelectionFromHBITMAP(HBITMAP bitmap, HWND window)
Definition: winproc.cpp:109
#define WM_CLOSE
Definition: winuser.h:1611
LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:362
void alignChildrenToMainWindow()
Definition: winproc.cpp:48
LRESULT OnDestroy(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:234
#define COLOR_BTNFACE
Definition: winuser.h:922
#define CS_DBLCLKS
Definition: winuser.h:646
#define WM_COMMAND
Definition: winuser.h:1730
static IHTMLWindow2 * window
Definition: events.c:77
LRESULT OnMouseWheel(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:164
unsigned int UINT
Definition: ndis.h:50
LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:428
#define BEGIN_MSG_MAP(theClass)
Definition: atlwin.h:1892
#define MESSAGE_HANDLER(msg, func)
Definition: atlwin.h:1920
#define WM_CREATE
Definition: winuser.h:1598
LRESULT OnSysColorChange(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:420
LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:383
LRESULT OnInitMenuPopup(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:277
static HBITMAP
Definition: button.c:44
LONG_PTR LRESULT
Definition: windef.h:209
LPARAM lParam
Definition: combotst.c:139
#define WM_GETMINMAXINFO
Definition: winuser.h:1630
BOOL ConfirmSave()
Definition: winproc.cpp:241