ReactOS  0.4.15-dev-3698-gce6da82
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:1613
#define WM_INITMENUPOPUP
Definition: winuser.h:1733
#define WM_MOUSEWHEEL
Definition: treelist.c:96
#define DECLARE_WND_CLASS_EX(WndClassName, style, bkgnd)
Definition: atlwin.h:1970
UINT_PTR WPARAM
Definition: windef.h:207
LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:220
WPARAM wParam
Definition: combotst.c:138
LRESULT OnGetMinMaxInfo(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:361
LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:259
unsigned int BOOL
Definition: ntddk_ex.h:94
LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:376
void saveImage(BOOL overwrite)
Definition: winproc.cpp:85
#define WM_SETCURSOR
Definition: winuser.h:1623
#define WM_DROPFILES
Definition: winuser.h:1812
#define WM_KEYDOWN
Definition: winuser.h:1702
LONG_PTR LPARAM
Definition: windef.h:208
#define WM_DESTROY
Definition: winuser.h:1596
LRESULT OnDropFiles(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:207
Definition: uimain.c:88
#define _T(x)
Definition: vfdio.h:22
#define WM_SIZE
Definition: winuser.h:1598
#define END_MSG_MAP()
Definition: atlwin.h:1883
void InsertSelectionFromHBITMAP(HBITMAP bitmap, HWND window)
Definition: winproc.cpp:102
#define WM_CLOSE
Definition: winuser.h:1608
LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:351
void alignChildrenToMainWindow()
Definition: winproc.cpp:48
LRESULT OnDestroy(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:227
#define COLOR_BTNFACE
Definition: winuser.h:922
#define CS_DBLCLKS
Definition: winuser.h:646
#define WM_COMMAND
Definition: winuser.h:1727
static IHTMLWindow2 * window
Definition: events.c:77
LRESULT OnMouseWheel(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:157
unsigned int UINT
Definition: ndis.h:50
LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:421
#define BEGIN_MSG_MAP(theClass)
Definition: atlwin.h:1864
#define MESSAGE_HANDLER(msg, func)
Definition: atlwin.h:1892
#define WM_CREATE
Definition: winuser.h:1595
LRESULT OnSysColorChange(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:413
LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:369
LRESULT OnInitMenuPopup(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:268
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:1627
BOOL ConfirmSave()
Definition: winproc.cpp:234