// DisplayDataDlg.cpp : implementation file // #include "stdafx.h" #include "Mtgdi.h" #include "DisplayDataDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDisplayDataDlg dialog CDisplayDataDlg::CDisplayDataDlg(CWnd* pParent /*=NULL*/) : CDialog(CDisplayDataDlg::IDD, pParent) { //{{AFX_DATA_INIT(CDisplayDataDlg) m_Month = _T(""); m_Day = -1; m_Year = -1; //}}AFX_DATA_INIT } void CDisplayDataDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CDisplayDataDlg) DDX_CBString(pDX, IDC_Month, m_Month); DDV_MaxChars(pDX, m_Month, 12); DDX_CBIndex(pDX, IDC_Day, m_Day); DDX_CBIndex(pDX, IDC_Year, m_Year); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CDisplayDataDlg, CDialog) //{{AFX_MSG_MAP(CDisplayDataDlg) // NOTE: the ClassWizard will add message map macros here //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDisplayDataDlg message handlers int CDisplayDataDlg::DoModal() { // TODO: Add your specialized code here and/or call the base class return CDialog::DoModal(); } void CDisplayDataDlg::CalcWindowRect(LPRECT lpClientRect, UINT nAdjustType) { // TODO: Add your specialized code here and/or call the base class CDialog::CalcWindowRect(lpClientRect, nAdjustType); }