SaveGame.cpp
上传用户:sycq158
上传日期:2008-10-22
资源大小:15361k
文件大小:3k
- // SaveGame.cpp : implementation file
- //
- #include "stdafx.h"
- #include "russia.h"
- #include "SaveGame.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // SaveGame dialog
- SaveGame::SaveGame(CWnd* pParent /*=NULL*/)
- : CDialog(SaveGame::IDD, pParent)
- {
- //{{AFX_DATA_INIT(SaveGame)
- m_SaveEdit = _T("");
- //}}AFX_DATA_INIT
- }
- void SaveGame::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(SaveGame)
- DDX_Control(pDX, IDCANCEL, m_SaveCancel);
- DDX_Control(pDX, IDOK, m_SaveOK);
- DDX_Text(pDX, IDC_EDIT1, m_SaveEdit);
- DDV_MaxChars(pDX, m_SaveEdit, 60);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(SaveGame, CDialog)
- //{{AFX_MSG_MAP(SaveGame)
- ON_EN_SETFOCUS(IDC_EDIT1, OnSetfocusEdit1)
- ON_EN_UPDATE(IDC_EDIT1, OnUpdateEdit1)
- ON_EN_MAXTEXT(IDC_EDIT1, OnMaxtextEdit1)
- ON_EN_KILLFOCUS(IDC_EDIT1, OnKillfocusEdit1)
- ON_EN_HSCROLL(IDC_EDIT1, OnHscrollEdit1)
- ON_EN_ERRSPACE(IDC_EDIT1, OnErrspaceEdit1)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // SaveGame message handlers
- void SaveGame::OnCancel()
- {
- // TODO: Add extra cleanup here
-
- CDialog::OnCancel();
- }
- void SaveGame::OnOK()
- {
- // TODO: Add extra validation here
-
- CDialog::OnOK();
- }
- void SaveGame::OnSetfocusEdit1()
- {
- // TODO: Add your control notification handler code here
-
- }
- void SaveGame::OnUpdateEdit1()
- {
- // TODO: If this is a RICHEDIT control, the control will not
- // send this notification unless you override the CDialog::OnInitDialog()
- // function to send the EM_SETEVENTMASK message to the control
- // with the ENM_UPDATE flag ORed into the lParam mask.
-
- // TODO: Add your control notification handler code here
-
- }
- void SaveGame::OnMaxtextEdit1()
- {
- // TODO: Add your control notification handler code here
-
- }
- void SaveGame::OnKillfocusEdit1()
- {
- // TODO: Add your control notification handler code here
-
- }
- void SaveGame::OnHscrollEdit1()
- {
- // TODO: If this is a RICHEDIT control, the control will not
- // send this notification unless you override the CDialog::OnInitDialog()
- // function to send the EM_SETEVENTMASK message to the control
- // with the ENM_SCROLL flag ORed into the lParam mask.
-
- // TODO: Add your control notification handler code here
-
- }
- void SaveGame::OnErrspaceEdit1()
- {
- // TODO: Add your control notification handler code here
-
- }