Datecal.h
上传用户:shlb123
上传日期:2007-01-01
资源大小:73k
文件大小:2k
源码类别:

ActiveX/DCOM/ATL

开发平台:

Visual C++

  1. //{{AFX_INCLUDES()
  2. //#include "msacal70.h"
  3. #include "calendar.h"
  4. //}}AFX_INCLUDES
  5. #if !defined(AFX_DATECAL_H__E1CC6EC1_FB03_11D1_817F_444553540000__INCLUDED_)
  6. #define AFX_DATECAL_H__E1CC6EC1_FB03_11D1_817F_444553540000__INCLUDED_
  7. #if _MSC_VER >= 1000
  8. #pragma once
  9. #endif // _MSC_VER >= 1000
  10. // DateCal.h : header file
  11. //
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CDateCal dialog
  14. class CDateCal : public CDialog
  15. {
  16. // Construction
  17. public:
  18. CDateCal(CWnd* pParent = NULL);   // standard constructor
  19. // Dialog Data
  20. //{{AFX_DATA(CDateCal)
  21. enum { IDD = IDD_DATE_CALENDAR };
  22. CButton m_butReset;
  23. CButton m_butPrevYear;
  24. CButton m_butPrevMonth;
  25. CButton m_butNextYear;
  26. CButton m_butNextMonth;
  27. CCalendar m_calDate;
  28. //}}AFX_DATA
  29. // Overrides
  30. // ClassWizard generated virtual function overrides
  31. //{{AFX_VIRTUAL(CDateCal)
  32. protected:
  33. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  34. //}}AFX_VIRTUAL
  35. // Implementation
  36. public:
  37. short m_nDay;
  38. short m_nMonth;
  39. short m_nYear;
  40. static char* MONTHS[12];
  41. protected:
  42. HICON m_hIcon;
  43. int GetNewMonth(const CString& rString ) const;
  44. // Generated message map functions
  45. //{{AFX_MSG(CDateCal)
  46. virtual BOOL OnInitDialog();
  47. virtual void OnOK();
  48. afx_msg void OnPrevYear();
  49. afx_msg void OnPrevMonth();
  50. afx_msg void OnReset();
  51. afx_msg void OnNextMonth();
  52. afx_msg void OnNextYear();
  53. afx_msg void OnNewYearDateCalendar();
  54. afx_msg void OnNewMonthDateCalendar();
  55. afx_msg void OnBeforeUpdateDateCalendar(short FAR* Cancel);
  56. DECLARE_EVENTSINK_MAP()
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. };
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_DATECAL_H__E1CC6EC1_FB03_11D1_817F_444553540000__INCLUDED_)