ReactOS 0.4.16-dev-106-g10b08aa
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 70 of file dialogs.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IDD 

Definition at line 73 of file dialogs.h.

#define IDD_STRETCHSKEW
Definition: resource.h:161

Member Function Documentation

◆ OnCancel()

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

Definition at line 293 of file dialogs.cpp.

294{
295 EndDialog(0);
296 return 0;
297}
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)

◆ OnClose()

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

Definition at line 262 of file dialogs.cpp.

263{
264 EndDialog(0);
265 return 0;
266}

◆ OnInitDialog()

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

Definition at line 253 of file dialogs.cpp.

254{
259 return TRUE;
260}
#define IDD_STRETCHSKEWEDITHSTRETCH
Definition: resource.h:165
#define IDD_STRETCHSKEWEDITVSKEW
Definition: resource.h:178
#define IDD_STRETCHSKEWEDITHSKEW
Definition: resource.h:174
#define IDD_STRETCHSKEWEDITVSTRETCH
Definition: resource.h:169
#define TRUE
Definition: types.h:120
#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 268 of file dialogs.cpp.

269{
270 CStringW strrcIntNumbers, strrcPercentage, strrcAngle;
271 BOOL tr1, tr2, tr3, tr4;
272
273 strrcIntNumbers.LoadString(g_hinstExe, IDS_INTNUMBERS);
274 strrcPercentage.LoadString(g_hinstExe, IDS_PERCENTAGE);
275 strrcAngle.LoadString(g_hinstExe, IDS_ANGLE);
276
281
282 if (!(tr1 && tr2 && tr3 && tr4))
283 MessageBox(strrcIntNumbers, NULL, MB_ICONEXCLAMATION);
284 else if (percentage.x < 1 || percentage.x > 500 || percentage.y < 1 || percentage.y > 500)
285 MessageBox(strrcPercentage, NULL, MB_ICONEXCLAMATION);
286 else if (angle.x < -89 || angle.x > 89 || angle.y < -89 || angle.y > 89)
287 MessageBox(strrcAngle, NULL, MB_ICONEXCLAMATION);
288 else
289 EndDialog(1);
290 return 0;
291}
HINSTANCE g_hinstExe
Definition: main.cpp:17
#define IDS_ANGLE
Definition: resource.h:218
#define IDS_PERCENTAGE
Definition: resource.h:217
#define IDS_INTNUMBERS
Definition: resource.h:216
BOOL LoadString(_In_ UINT nID)
Definition: cstringt.h:639
POINT percentage
Definition: dialogs.h:88
#define NULL
Definition: types.h:112
unsigned int BOOL
Definition: ntddk_ex.h:94
GLfloat angle
Definition: glext.h:10853
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
#define MB_ICONEXCLAMATION
Definition: winuser.h:788
#define MessageBox
Definition: winuser.h:5834
UINT WINAPI GetDlgItemInt(_In_ HWND, _In_ int, _Out_opt_ PBOOL, _In_ BOOL)

Member Data Documentation

◆ angle

POINT CStretchSkewDialog::angle

Definition at line 89 of file dialogs.h.

Referenced by CMainWindow::OnCommand().

◆ percentage

POINT CStretchSkewDialog::percentage

Definition at line 88 of file dialogs.h.

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


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