ReactOS 0.4.15-dev-5669-g09dde2c
CStretchSkewDialog Class Reference

#include <dialogs.h>

Inheritance diagram for CStretchSkewDialog:
Collaboration diagram for CStretchSkewDialog:

Public Types

enum  { IDD = IDD_STRETCHSKEW }
 

Public Member Functions

LRESULT OnInitDialog (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnClose (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnOk (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
LRESULT OnCancel (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 

Public Attributes

POINT percentage
 
POINT angle
 

Detailed Description

Definition at line 68 of file dialogs.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IDD 

Definition at line 71 of file dialogs.h.

#define IDD_STRETCHSKEW
Definition: resource.h:154

Member Function Documentation

◆ OnCancel()

LRESULT CStretchSkewDialog::OnCancel ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)

Definition at line 257 of file dialogs.cpp.

258{
259 EndDialog(0);
260 return 0;
261}
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)

◆ OnClose()

LRESULT CStretchSkewDialog::OnClose ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 224 of file dialogs.cpp.

225{
226 EndDialog(0);
227 return 0;
228}

◆ OnInitDialog()

LRESULT CStretchSkewDialog::OnInitDialog ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 215 of file dialogs.cpp.

216{
221 return 0;
222}
#define IDD_STRETCHSKEWEDITHSTRETCH
Definition: resource.h:158
#define IDD_STRETCHSKEWEDITVSKEW
Definition: resource.h:171
#define IDD_STRETCHSKEWEDITHSKEW
Definition: resource.h:167
#define IDD_STRETCHSKEWEDITVSTRETCH
Definition: resource.h:162
#define FALSE
Definition: types.h:117
BOOL WINAPI SetDlgItemInt(_In_ HWND, _In_ int, _In_ UINT, _In_ BOOL)

◆ OnOk()

LRESULT CStretchSkewDialog::OnOk ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)

Definition at line 230 of file dialogs.cpp.

231{
232 CString strrcIntNumbers;
233 CString strrcPercentage;
234 CString strrcAngle;
235 BOOL tr1, tr2, tr3, tr4;
236
237 strrcIntNumbers.LoadString(hProgInstance, IDS_INTNUMBERS);
238 strrcPercentage.LoadString(hProgInstance, IDS_PERCENTAGE);
240
245
246 if (!(tr1 && tr2 && tr3 && tr4))
247 MessageBox(strrcIntNumbers, NULL, MB_ICONEXCLAMATION);
248 else if (percentage.x < 1 || percentage.x > 500 || percentage.y < 1 || percentage.y > 500)
249 MessageBox(strrcPercentage, NULL, MB_ICONEXCLAMATION);
250 else if (angle.x < -89 || angle.x > 89 || angle.y < -89 || angle.y > 89)
251 MessageBox(strrcAngle, NULL, MB_ICONEXCLAMATION);
252 else
253 EndDialog(1);
254 return 0;
255}
#define IDS_ANGLE
Definition: resource.h:212
#define IDS_PERCENTAGE
Definition: resource.h:211
#define IDS_INTNUMBERS
Definition: resource.h:210
BOOL LoadString(_In_ UINT nID)
Definition: cstringt.h:591
POINT percentage
Definition: dialogs.h:86
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
unsigned int BOOL
Definition: ntddk_ex.h:94
GLfloat angle
Definition: glext.h:10853
HINSTANCE hProgInstance
Definition: main.cpp:50
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
#define MB_ICONEXCLAMATION
Definition: winuser.h:779
#define MessageBox
Definition: winuser.h:5812
UINT WINAPI GetDlgItemInt(_In_ HWND, _In_ int, _Out_opt_ PBOOL, _In_ BOOL)

Member Data Documentation

◆ angle

POINT CStretchSkewDialog::angle

Definition at line 87 of file dialogs.h.

Referenced by CMainWindow::OnCommand().

◆ percentage

POINT CStretchSkewDialog::percentage

Definition at line 86 of file dialogs.h.

Referenced by CMainWindow::OnCommand(), and OnOk().


The documentation for this class was generated from the following files: