ReactOS  0.4.14-dev-1115-gebeeb9d
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.

71 { IDD = IDD_STRETCHSKEW };
#define IDD_STRETCHSKEW
Definition: definitions.h:183

Member Function Documentation

◆ OnCancel()

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

Definition at line 256 of file dialogs.cpp.

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

◆ OnClose()

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

Definition at line 223 of file dialogs.cpp.

224 {
225  EndDialog(0);
226  return 0;
227 }
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)

◆ OnInitDialog()

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

Definition at line 214 of file dialogs.cpp.

215 {
220  return 0;
221 }
#define IDD_STRETCHSKEWEDITVSTRETCH
Definition: definitions.h:191
#define IDD_STRETCHSKEWEDITHSTRETCH
Definition: definitions.h:187
BOOL WINAPI SetDlgItemInt(_In_ HWND, _In_ int, _In_ UINT, _In_ BOOL)
#define IDD_STRETCHSKEWEDITHSKEW
Definition: definitions.h:196
#define IDD_STRETCHSKEWEDITVSKEW
Definition: definitions.h:200

◆ OnOk()

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

Definition at line 229 of file dialogs.cpp.

230 {
231  CString strrcIntNumbers;
232  CString strrcPercentage;
233  CString strrcAngle;
234  BOOL tr1, tr2, tr3, tr4;
235 
236  strrcIntNumbers.LoadString(hProgInstance, IDS_INTNUMBERS);
237  strrcPercentage.LoadString(hProgInstance, IDS_PERCENTAGE);
238  strrcAngle.LoadString(hProgInstance, IDS_ANGLE);
239 
244 
245  if (!(tr1 && tr2 && tr3 && tr4))
246  MessageBox(strrcIntNumbers, NULL, MB_ICONEXCLAMATION);
247  else if (percentage.x < 1 || percentage.x > 500 || percentage.y < 1 || percentage.y > 500)
248  MessageBox(strrcPercentage, NULL, MB_ICONEXCLAMATION);
249  else if (angle.x < -89 || angle.x > 89 || angle.y < -89 || angle.y > 89)
250  MessageBox(strrcAngle, NULL, MB_ICONEXCLAMATION);
251  else
252  EndDialog(1);
253  return 0;
254 }
#define IDS_INTNUMBERS
Definition: definitions.h:234
#define TRUE
Definition: types.h:120
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
GLfloat angle
Definition: glext.h:10853
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
#define MB_ICONEXCLAMATION
Definition: winuser.h:779
#define IDS_PERCENTAGE
Definition: definitions.h:235
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
UINT WINAPI GetDlgItemInt(_In_ HWND, _In_ int, _Out_opt_ PBOOL, _In_ BOOL)
#define IDD_STRETCHSKEWEDITVSTRETCH
Definition: definitions.h:191
#define IDD_STRETCHSKEWEDITHSTRETCH
Definition: definitions.h:187
#define MessageBox
Definition: winuser.h:5797
HINSTANCE hProgInstance
Definition: main.cpp:50
#define IDS_ANGLE
Definition: definitions.h:236
POINT percentage
Definition: dialogs.h:86
#define IDD_STRETCHSKEWEDITHSKEW
Definition: definitions.h:196
#define IDD_STRETCHSKEWEDITVSKEW
Definition: definitions.h:200
BOOL LoadString(_In_ UINT nID)
Definition: cstringt.h:526

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: