class CDIALOGDlg : public CDialog
{
public:
CDIALOGDlg();
enum { IDD = IDD_DIALOG1 };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Implementation
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedCheck1();
// how long time client been in hotel
CString SecondName_String;
CString Adress_String;
int Phone_int;
int How_Many_Plays_int;
int How_Long_Stay_int;
};
CDIALOGDlg::CDIALOGDlg() : CDialog(CDIALOGDlg::IDD)
, SecondName_String(_T(""))
, Adress_String(_T(""))
, Phone_int(0)
, How_Many_Plays_int(0)
, How_Long_Stay_int(0)
{
}
void CDIALOGDlg:

oDataExchange(CDataExchange* pDX)
{
CDialog:

oDataExchange(pDX);
DDX_Text(pDX, IDC_EDIT1, SecondName_String);
DDV_MaxChars(pDX, SecondName_String, 20);
DDX_Text(pDX, IDC_EDIT2, Adress_String);
DDX_Text(pDX, IDC_EDIT3, Phone_int);
DDV_MinMaxInt(pDX, Phone_int, 0, 15);
DDX_Text(pDX, IDC_EDIT4, How_Many_Plays_int);
DDV_MinMaxInt(pDX, How_Many_Plays_int, 1, 255);
DDX_Text(pDX, IDC_EDIT5, How_Long_Stay_int);
DDV_MinMaxInt(pDX, How_Long_Stay_int, 1, 365);
}
/////++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++
BEGIN_MESSAGE_MAP(CDIALOGDlg, CDialog)
END_MESSAGE_MAP()
void CLab_8App::OnDIALOG1()
{
CDIALOGDlg DIALOGDlg;
DIALOGDlg.DoModal();
}
// App command to run the dialog
void CLab_8App::OnAppAbout()
{
CAboutDlg aboutDlg;
aboutDlg.DoModal();
}