CalendarBar.h 722 B

123456789101112131415161718192021222324252627282930313233343536
  1. 
  2. #pragma once
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CCalendarBar 窗口
  5. class CCalendarBar : public CWnd
  6. {
  7. // 构造
  8. public:
  9. CCalendarBar();
  10. // 特性
  11. protected:
  12. CMonthCalCtrl m_wndCalendar;
  13. int m_nMyCalendarsY;
  14. CImageList m_Images;
  15. // 重写
  16. public:
  17. virtual BOOL Create(const RECT& rect, CWnd* pParentWnd, UINT nID = (UINT)-1);
  18. virtual BOOL PreTranslateMessage(MSG *pMsg);
  19. // 实现
  20. public:
  21. virtual ~CCalendarBar();
  22. protected:
  23. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  24. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  25. afx_msg void OnSize(UINT nType, int cx, int cy);
  26. afx_msg void OnPaint();
  27. afx_msg void OnSetFocus(CWnd *pOldWnd);
  28. DECLARE_MESSAGE_MAP()
  29. };