// InputDate.cpp : implementation file // #include "stdafx.h" #include "lyfzipmanage.h" #include "InputDate.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // InputDate dialog InputDate::InputDate(CWnd* pParent /*=NULL*/) : CDialog(InputDate::IDD, pParent) { //{{AFX_DATA_INIT(InputDate) m_date = CTime::GetCurrentTime(); m_check1 = FALSE; //}}AFX_DATA_INIT } void InputDate::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(InputDate) DDX_DateTimeCtrl(pDX, IDC_DATETIMEPICKER1, m_date); DDX_Check(pDX, IDC_CHECK1, m_check1); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(InputDate, CDialog) //{{AFX_MSG_MAP(InputDate) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // InputDate message handlers void InputDate::OnOK() { // TODO: Add extra validation here UpdateData(); CDialog::OnOK(); }