ReactOS  0.4.12-dev-18-gf469aca
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 
11 class CMirrorRotateDialog : public CDialogImpl<CMirrorRotateDialog>
12 {
13 public:
14  enum { IDD = IDD_MIRRORROTATE };
15 
24  END_MSG_MAP()
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 
34 class CAttributesDialog : public CDialogImpl<CAttributesDialog>
35 {
36 public:
37  enum { IDD = IDD_ATTRIBUTES };
38 
45  COMMAND_ID_HANDLER(IDD_ATTRIBUTESRB1, OnRadioButton1)
46  COMMAND_ID_HANDLER(IDD_ATTRIBUTESRB2, OnRadioButton2)
50  END_MSG_MAP()
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 
63 public:
64  int newWidth;
65  int newHeight;
66 };
67 
68 class CStretchSkewDialog : public CDialogImpl<CStretchSkewDialog>
69 {
70 public:
71  enum { IDD = IDD_STRETCHSKEW };
72 
78  END_MSG_MAP()
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 
85 public:
88 };
#define IDD_ATTRIBUTESEDIT1
Definition: definitions.h:164
#define IDD_STRETCHSKEW
Definition: definitions.h:183
#define IDD_ATTRIBUTESRB3
Definition: definitions.h:179
#define IDOK
Definition: winuser.h:824
LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: dialogs.cpp:32
#define IDD_MIRRORROTATERB1
Definition: definitions.h:156
LRESULT OnInitDialog(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: dialogs.cpp:25
WPARAM wParam
Definition: combotst.c:138
UINT_PTR WPARAM
Definition: windef.h:207
#define IDD_ATTRIBUTES
Definition: definitions.h:163
#define IDD_MIRRORROTATERB2
Definition: definitions.h:157
LONG_PTR LPARAM
Definition: windef.h:208
#define COMMAND_ID_HANDLER(id, func)
Definition: atlwin.h:1816
unsigned int BOOL
Definition: ntddk_ex.h:94
#define END_MSG_MAP()
Definition: atlwin.h:1780
#define IDD_ATTRIBUTESSTANDARD
Definition: definitions.h:174
#define WM_CLOSE
Definition: winuser.h:1603
unsigned int UINT
Definition: ndis.h:50
LRESULT OnRadioButton3(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
Definition: dialogs.cpp:59
unsigned short WORD
Definition: ntddk_ex.h:93
#define IDD_ATTRIBUTESRB1
Definition: definitions.h:177
#define IDD_MIRRORROTATE
Definition: definitions.h:154
POINT percentage
Definition: dialogs.h:86
#define IDD_ATTRIBUTESEDIT2
Definition: definitions.h:165
#define IDD_MIRRORROTATERB3
Definition: definitions.h:158
#define BEGIN_MSG_MAP(theClass)
Definition: atlwin.h:1761
#define MESSAGE_HANDLER(msg, func)
Definition: atlwin.h:1789
LRESULT OnOk(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
Definition: dialogs.cpp:38
#define IDCANCEL
Definition: winuser.h:825
LONG_PTR LRESULT
Definition: windef.h:209
LRESULT OnRadioButton12(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
Definition: dialogs.cpp:67
#define WM_INITDIALOG
Definition: winuser.h:1715
LPARAM lParam
Definition: combotst.c:139
LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
Definition: dialogs.cpp:53
#define IDD_ATTRIBUTESRB2
Definition: definitions.h:178