// CustomDlg.cpp : implementation file // #include "stdafx.h" #include "minegame.h" #include "CustomDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CCustomDlg dialog CCustomDlg::CCustomDlg(CWnd* pParent /*=NULL*/) : CDialog(CCustomDlg::IDD, pParent) { //{{AFX_DATA_INIT(CCustomDlg) m_num = 0; m_qu = 0; m_row = 0; //}}AFX_DATA_INIT } void CCustomDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CCustomDlg) DDX_Text(pDX, IDC_NUM, m_num); DDX_Text(pDX, IDC_QU, m_qu); DDX_Text(pDX, IDC_ROW, m_row); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CCustomDlg, CDialog) //{{AFX_MSG_MAP(CCustomDlg) // NOTE: the ClassWizard will add message map macros here //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CCustomDlg message handlers void CCustomDlg::SetData(UINT q, UINT r, UINT n) { m_row = r; m_qu = q; m_num = n; } void CCustomDlg::GetData(UINT *q, UINT *r, UINT *n) { *r = m_row; *q = m_qu; *n = m_num; }