InputDate.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // InputDate.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "lyfzipmanage.h"
  5. #include "InputDate.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // InputDate dialog
  13. InputDate::InputDate(CWnd* pParent /*=NULL*/)
  14. : CDialog(InputDate::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(InputDate)
  17. m_date = CTime::GetCurrentTime();
  18. m_check1 = FALSE;
  19. //}}AFX_DATA_INIT
  20. }
  21. void InputDate::DoDataExchange(CDataExchange* pDX)
  22. {
  23. CDialog::DoDataExchange(pDX);
  24. //{{AFX_DATA_MAP(InputDate)
  25. DDX_DateTimeCtrl(pDX, IDC_DATETIMEPICKER1, m_date);
  26. DDX_Check(pDX, IDC_CHECK1, m_check1);
  27. //}}AFX_DATA_MAP
  28. }
  29. BEGIN_MESSAGE_MAP(InputDate, CDialog)
  30. //{{AFX_MSG_MAP(InputDate)
  31. //}}AFX_MSG_MAP
  32. END_MESSAGE_MAP()
  33. /////////////////////////////////////////////////////////////////////////////
  34. // InputDate message handlers
  35. void InputDate::OnOK()
  36. {
  37. // TODO: Add extra validation here
  38. UpdateData();
  39. CDialog::OnOK();
  40. }