home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c12 / useclock / clockpropertiesdlg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.3 KB  |  53 lines

  1. // ClockPropertiesDlg.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "UseClock.h"
  6. #include "ClockPropertiesDlg.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CClockPropertiesDlg dialog
  16.  
  17.  
  18. CClockPropertiesDlg::CClockPropertiesDlg(CWnd* pParent /*=NULL*/)
  19.     : CDialog(CClockPropertiesDlg::IDD, pParent)
  20. {
  21.     //{{AFX_DATA_INIT(CClockPropertiesDlg)
  22.     m_command = _T("");
  23.     m_hours = 0;
  24.     m_minutes = 0;
  25.     m_type = 0;
  26.     //}}AFX_DATA_INIT
  27. }
  28.  
  29.  
  30. void CClockPropertiesDlg::DoDataExchange(CDataExchange* pDX)
  31. {
  32.     CDialog::DoDataExchange(pDX);
  33.     //{{AFX_DATA_MAP(CClockPropertiesDlg)
  34.     DDX_Text(pDX, IDC_COMMAND, m_command);
  35.     DDX_Text(pDX, IDC_HOURS, m_hours);
  36.     DDV_MinMaxInt(pDX, m_hours, 0, 23);
  37.     DDX_Text(pDX, IDC_MINUTES, m_minutes);
  38.     DDV_MinMaxInt(pDX, m_minutes, 0, 59);
  39.     DDX_Text(pDX, IDC_TYPE, m_type);
  40.     DDV_MinMaxInt(pDX, m_type, 1, 3);
  41.     //}}AFX_DATA_MAP
  42. }
  43.  
  44.  
  45. BEGIN_MESSAGE_MAP(CClockPropertiesDlg, CDialog)
  46.     //{{AFX_MSG_MAP(CClockPropertiesDlg)
  47.         // NOTE: the ClassWizard will add message map macros here
  48.     //}}AFX_MSG_MAP
  49. END_MESSAGE_MAP()
  50.  
  51. /////////////////////////////////////////////////////////////////////////////
  52. // CClockPropertiesDlg message handlers
  53.