ReactOS  0.4.15-dev-1074-gffc96d2
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 
29  END_MSG_MAP()
30 
32  LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
33  LRESULT OnDestroy(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
34  LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
36  LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
39  LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
41  LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
42 
44  void saveImage(BOOL overwrite);
46  BOOL ConfirmSave();
47 };
#define WM_SYSCOLORCHANGE
Definition: winuser.h:1608
#define WM_INITMENUPOPUP
Definition: winuser.h:1728
#define DECLARE_WND_CLASS_EX(WndClassName, style, bkgnd)
Definition: atlwin.h:1886
UINT_PTR WPARAM
Definition: windef.h:207
LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:173
WPARAM wParam
Definition: combotst.c:138
LRESULT OnGetMinMaxInfo(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:314
LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:212
unsigned int BOOL
Definition: ntddk_ex.h:94
LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:329
void saveImage(BOOL overwrite)
Definition: winproc.cpp:88
#define WM_SETCURSOR
Definition: winuser.h:1618
#define WM_DROPFILES
Definition: winuser.h:1807
#define WM_KEYDOWN
Definition: winuser.h:1697
LONG_PTR LPARAM
Definition: windef.h:208
#define WM_DESTROY
Definition: winuser.h:1591
LRESULT OnDropFiles(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:160
Definition: uimain.c:88
#define _T(x)
Definition: vfdio.h:22
#define WM_SIZE
Definition: winuser.h:1593
#define END_MSG_MAP()
Definition: atlwin.h:1799
void InsertSelectionFromHBITMAP(HBITMAP bitmap, HWND window)
Definition: winproc.cpp:105
#define WM_CLOSE
Definition: winuser.h:1603
LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:304
void alignChildrenToMainWindow()
Definition: winproc.cpp:51
LRESULT OnDestroy(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:180
#define COLOR_BTNFACE
Definition: winuser.h:918
#define CS_DBLCLKS
Definition: winuser.h:646
#define WM_COMMAND
Definition: winuser.h:1722
static IHTMLWindow2 * window
Definition: events.c:77
unsigned int UINT
Definition: ndis.h:50
LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:372
#define BEGIN_MSG_MAP(theClass)
Definition: atlwin.h:1780
#define MESSAGE_HANDLER(msg, func)
Definition: atlwin.h:1808
#define WM_CREATE
Definition: winuser.h:1590
LRESULT OnSysColorChange(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:364
LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:322
LRESULT OnInitMenuPopup(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:221
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:1622
BOOL ConfirmSave()
Definition: winproc.cpp:187