ReactOS 0.4.15-dev-7934-g1dc8d80
dialogs.h
Go to the documentation of this file.
1/*
2 * PROJECT: PAINT for ReactOS
3 * LICENSE: LGPL-2.0-or-later (https://spdx.org/licenses/LGPL-2.0-or-later)
4 * PURPOSE: Window procedures of the dialog windows plus launching functions
5 * COPYRIGHT: Copyright 2015 Benedikt Freisen <b.freisen@gmx.net>
6 */
7
8#pragma once
9
10void ShowError(INT stringID, ...);
11
12class CMirrorRotateDialog : public CDialogImpl<CMirrorRotateDialog>
13{
14public:
16
26
28 LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
29 LRESULT OnOk(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
30 LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
31 LRESULT OnRadioButton3(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
32 LRESULT OnRadioButton12(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
33};
34
36{
37public:
38 enum { IDD = IDD_ATTRIBUTES };
39
52
54 LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
55 LRESULT OnOk(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
56 LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
57 LRESULT OnDefault(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
58 LRESULT OnRadioButton1(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
59 LRESULT OnRadioButton2(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
60 LRESULT OnRadioButton3(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
61 LRESULT OnEdit1(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
62 LRESULT OnEdit2(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
63
64public:
65 int newWidth;
66 int newHeight;
67 BOOL m_bBlackAndWhite;
68};
69
71{
72public:
73 enum { IDD = IDD_STRETCHSKEW };
74
81
83 LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
84 LRESULT OnOk(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
85 LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
86
87public:
88 POINT percentage;
90};
91
92class CFontsDialog : public CDialogImpl<CFontsDialog>
93{
94public:
95 enum { IDD = IDD_FONTS };
96
98 void InitFontNames();
99 void InitFontSizes();
100 void InitToolbar();
101
108 MESSAGE_HANDLER(WM_TOOLSMODELTOOLCHANGED, OnToolsModelToolChanged)
112
115 LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
116 LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
117 LRESULT OnMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
118 LRESULT OnNotify(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
119 LRESULT OnToolsModelToolChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
122 void OnFontSize(UINT codeNotify);
123 void OnFontName(UINT codeNotify);
124};
const WCHAR * class
Definition: main.c:68
#define WM_TOOLSMODELTOOLCHANGED
Definition: precomp.h:49
#define IDD_ATTRIBUTESRB3
Definition: resource.h:157
#define IDD_MIRRORROTATERB1
Definition: resource.h:134
#define IDD_MIRRORROTATERB2
Definition: resource.h:135
#define IDD_ATTRIBUTESSTANDARD
Definition: resource.h:152
#define IDD_STRETCHSKEW
Definition: resource.h:161
#define IDD_ATTRIBUTESEDIT2
Definition: resource.h:143
#define IDD_ATTRIBUTES
Definition: resource.h:141
#define IDD_ATTRIBUTESRB1
Definition: resource.h:155
#define IDD_MIRRORROTATERB3
Definition: resource.h:136
#define IDD_ATTRIBUTESRB2
Definition: resource.h:156
#define IDD_MIRRORROTATE
Definition: resource.h:132
#define IDD_FONTS
Definition: resource.h:181
#define IDD_ATTRIBUTESEDIT1
Definition: resource.h:142
static LRESULT OnNotify(HWND hWnd, LPARAM lParam)
Definition: wordpad.c:2004
LRESULT OnRadioButton3(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
Definition: dialogs.cpp:70
LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: dialogs.cpp:43
LRESULT OnOk(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
Definition: dialogs.cpp:49
LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
Definition: dialogs.cpp:64
LRESULT OnInitDialog(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: dialogs.cpp:36
LRESULT OnRadioButton12(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
Definition: dialogs.cpp:81
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:1926
#define BEGIN_MSG_MAP(theClass)
Definition: atlwin.h:1898
#define COMMAND_ID_HANDLER(id, func)
Definition: atlwin.h:1953
#define END_MSG_MAP()
Definition: atlwin.h:1917
static BOOL protected
Definition: protectdata.c:37
void ShowError(INT stringID,...)
Definition: dialogs.cpp:20
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:716
int32_t INT
Definition: typedefs.h:58
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:1621
#define IDCANCEL
Definition: winuser.h:831
#define WM_COMMAND
Definition: winuser.h:1740
#define WM_INITDIALOG
Definition: winuser.h:1739
#define IDOK
Definition: winuser.h:830
#define WM_DRAWITEM
Definition: winuser.h:1645
#define WM_MEASUREITEM
Definition: winuser.h:1646
#define WM_MOVE
Definition: winuser.h:1610