SetMazeSize.cpp
上传用户:sycq158
上传日期:2008-10-22
资源大小:15361k
文件大小:2k
- // SetMazeSize.cpp : implementation file
- //
- #include "stdafx.h"
- #include "mergenew.h"
- #include "SetMazeSize.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // SetMazeSize dialog
- SetMazeSize::SetMazeSize(CWnd* pParent /*=NULL*/)
- : CDialog(SetMazeSize::IDD, pParent)
- {
- //{{AFX_DATA_INIT(SetMazeSize)
- m_row = 0;
- m_col = 0;
- //}}AFX_DATA_INIT
- }
- void SetMazeSize::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(SetMazeSize)
- DDX_Control(pDX, IDOK, m_cancel);
- DDX_Control(pDX, IDCANCEL, m_ok);
- DDX_Text(pDX, IDC_EDIT1, m_row);
- DDX_Text(pDX, IDC_EDIT2, m_col);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(SetMazeSize, CDialog)
- //{{AFX_MSG_MAP(SetMazeSize)
- ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
- ON_EN_CHANGE(IDC_EDIT2, OnChangeEdit2)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // SetMazeSize message handlers
- void SetMazeSize::OnChangeEdit1()
- {
- // TODO: If this is a RICHEDIT control, the control will not
- // send this notification unless you override the CDialog::OnInitDialog()
- // function and call CRichEditCtrl().SetEventMask()
- // with the ENM_CHANGE flag ORed into the mask.
-
- // TODO: Add your control notification handler code here
- }
- void SetMazeSize::OnChangeEdit2()
- {
- // TODO: If this is a RICHEDIT control, the control will not
- // send this notification unless you override the CDialog::OnInitDialog()
- // function and call CRichEditCtrl().SetEventMask()
- // with the ENM_CHANGE flag ORed into the mask.
-
- // TODO: Add your control notification handler code here
- }
- void SetMazeSize::OnOK()
- {
- // TODO: Add extra validation here
-
- CDialog::OnOK();
- }
- void SetMazeSize::OnCancel()
- {
- // TODO: Add extra cleanup here
-
- CDialog::OnCancel();
- }