ReactOS 0.4.15-dev-5666-gc548b97
dialogs.h
Go to the documentation of this file.
1/*
2 * PROJECT: PAINT for ReactOS
3 * LICENSE: LGPL
4 * FILE: base/applications/mspaint/dialogs.h
5 * PURPOSE: Window procedures of the dialog windows plus launching functions
6 * PROGRAMMERS: Benedikt Freisen
7 */
8
9#pragma once
10
11class CMirrorRotateDialog : public CDialogImpl<CMirrorRotateDialog>
12{
13public:
15
25
27 LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
28 LRESULT OnOk(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
29 LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
30 LRESULT OnRadioButton3(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
31 LRESULT OnRadioButton12(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
32};
33
35{
36public:
37 enum { IDD = IDD_ATTRIBUTES };
38
51
53 LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
54 LRESULT OnOk(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
55 LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
56 LRESULT OnDefault(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
57 LRESULT OnRadioButton1(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
58 LRESULT OnRadioButton2(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
59 LRESULT OnRadioButton3(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
60 LRESULT OnEdit1(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
61 LRESULT OnEdit2(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
62
63public:
64 int newWidth;
65 int newHeight;
66};
67
69{
70public:
71 enum { IDD = IDD_STRETCHSKEW };
72
79
81 LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
82 LRESULT OnOk(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
83 LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
84
85public:
86 POINT percentage;
88};
89
90class CFontsDialog : public CDialogImpl<CFontsDialog>
91{
92public:
93 enum { IDD = IDD_FONTS };
94
96 void InitFontNames();
97 void InitFontSizes();
98 void InitToolbar();
99
106 MESSAGE_HANDLER(WM_TOOLSMODELTOOLCHANGED, OnToolsModelToolChanged)
110
113 LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
114 LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
115 LRESULT OnMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
116 LRESULT OnNotify(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
117 LRESULT OnToolsModelToolChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
120 void OnFontSize(UINT codeNotify);
121 void OnFontName(UINT codeNotify);
122};
const WCHAR * class
Definition: main.c:68
#define WM_TOOLSMODELTOOLCHANGED
Definition: precomp.h:32
#define IDD_ATTRIBUTESRB3
Definition: resource.h:150
#define IDD_MIRRORROTATERB1
Definition: resource.h:127
#define IDD_MIRRORROTATERB2
Definition: resource.h:128
#define IDD_ATTRIBUTESSTANDARD
Definition: resource.h:145
#define IDD_STRETCHSKEW
Definition: resource.h:154
#define IDD_ATTRIBUTESEDIT2
Definition: resource.h:136
#define IDD_ATTRIBUTES
Definition: resource.h:134
#define IDD_ATTRIBUTESRB1
Definition: resource.h:148
#define IDD_MIRRORROTATERB3
Definition: resource.h:129
#define IDD_ATTRIBUTESRB2
Definition: resource.h:149
#define IDD_MIRRORROTATE
Definition: resource.h:125
#define IDD_FONTS
Definition: resource.h:174
#define IDD_ATTRIBUTESEDIT1
Definition: resource.h:135
static LRESULT OnNotify(HWND hWnd, LPARAM lParam)
Definition: wordpad.c:2004
LRESULT OnRadioButton3(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
Definition: dialogs.cpp:60
LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: dialogs.cpp:33
LRESULT OnOk(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
Definition: dialogs.cpp:39
LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
Definition: dialogs.cpp:54
LRESULT OnInitDialog(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: dialogs.cpp:26
LRESULT OnRadioButton12(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
Definition: dialogs.cpp:68
static int OnCommand(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: clipbrd.c:202
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned short WORD
Definition: ntddk_ex.h:93
GLfloat angle
Definition: glext.h:10853
#define MESSAGE_HANDLER(msg, func)
Definition: atlwin.h:1920
#define BEGIN_MSG_MAP(theClass)
Definition: atlwin.h:1892
#define COMMAND_ID_HANDLER(id, func)
Definition: atlwin.h:1947
#define END_MSG_MAP()
Definition: atlwin.h:1911
static BOOL protected
Definition: protectdata.c:37
unsigned int UINT
Definition: ndis.h:50
void OnMeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct)
Definition: page1.c:138
#define WM_NOTIFY
Definition: richedit.h:61
void OnMove(WPARAM nType, int cx, int cy)
Definition: taskmgr.c:785
static LRESULT OnDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
Definition: welcome.c:1411
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207
#define WM_CLOSE
Definition: winuser.h:1611
#define IDCANCEL
Definition: winuser.h:825
#define WM_COMMAND
Definition: winuser.h:1730
#define WM_INITDIALOG
Definition: winuser.h:1729
#define IDOK
Definition: winuser.h:824
#define WM_DRAWITEM
Definition: winuser.h:1635
#define WM_MEASUREITEM
Definition: winuser.h:1636
#define WM_MOVE
Definition: winuser.h:1600