CalendarDlg.h
上传用户:sdpcwz
上传日期:2009-12-14
资源大小:1237k
文件大小:1k
源码类别:

书籍源码

开发平台:

Visual C++

  1. // CalendarDlg.h : header file
  2. //
  3. #if !defined(AFX_CALENDARDLG_H__94A3E3E9_71BB_11D6_8F32_00E04CE76240__INCLUDED_)
  4. #define AFX_CALENDARDLG_H__94A3E3E9_71BB_11D6_8F32_00E04CE76240__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CCalendarDlg dialog
  10. #define  WM_SELCHANGE WM_USER+1000
  11. class CCalendarDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. CCalendarDlg(CWnd* pParent = NULL); // standard constructor
  16. // Dialog Data
  17. //{{AFX_DATA(CCalendarDlg)
  18. enum { IDD = IDD_CALENDAR_DIALOG };
  19. CMonthCalCtrl m_MonthCalCtrl;
  20. int m_nDay;
  21. int m_nMonth;
  22. int m_nYear;
  23. //}}AFX_DATA
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CCalendarDlg)
  26. protected:
  27. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. protected:
  31. HICON m_hIcon;
  32. // Generated message map functions
  33. //{{AFX_MSG(CCalendarDlg)
  34. virtual BOOL OnInitDialog();
  35. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  36. afx_msg void OnPaint();
  37. afx_msg HCURSOR OnQueryDragIcon();
  38. afx_msg void OnSetCursel();
  39. afx_msg void OnSetToday();
  40. //}}AFX_MSG
  41. DECLARE_MESSAGE_MAP()
  42. };
  43. //{{AFX_INSERT_LOCATION}}
  44. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  45. #endif // !defined(AFX_CALENDARDLG_H__94A3E3E9_71BB_11D6_8F32_00E04CE76240__INCLUDED_)