home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c08 / querydef / qdefydlg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  992 b   |  45 lines

  1. // QDYearDlg.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "QueryDef.h"
  6. #include "QDefYDlg.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. // CQDYearDlg dialog
  16.  
  17.  
  18. CQDYearDlg::CQDYearDlg(CWnd* pParent /*=NULL*/)
  19.     : CDialog(CQDYearDlg::IDD, pParent)
  20. {
  21.     //{{AFX_DATA_INIT(CQDYearDlg)
  22.     m_nYear = 0;
  23.     //}}AFX_DATA_INIT
  24. }
  25.  
  26.  
  27. void CQDYearDlg::DoDataExchange(CDataExchange* pDX)
  28. {
  29.     CDialog::DoDataExchange(pDX);
  30.     //{{AFX_DATA_MAP(CQDYearDlg)
  31.     DDX_Text(pDX, IDC_YEAR, m_nYear);
  32.     DDV_MinMaxInt(pDX, m_nYear, 1900, 2100);
  33.     //}}AFX_DATA_MAP
  34. }
  35.  
  36.  
  37. BEGIN_MESSAGE_MAP(CQDYearDlg, CDialog)
  38.     //{{AFX_MSG_MAP(CQDYearDlg)
  39.         // NOTE: the ClassWizard will add message map macros here
  40.     //}}AFX_MSG_MAP
  41. END_MESSAGE_MAP()
  42.  
  43. /////////////////////////////////////////////////////////////////////////////
  44. // CQDYearDlg message handlers
  45.