123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- #if !defined(AFX_CALENDARFRM_H__9EC203BC_1574_4986_B73C_A44C975739CC__INCLUDED_)
- #define AFX_CALENDARFRM_H__9EC203BC_1574_4986_B73C_A44C975739CC__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif
- #include "Calendar1.h"
- class CYearEdit : public CEdit
- {
- public:
- CYearEdit();
- public:
- public:
-
-
- public:
- virtual BOOL Create(const RECT& rect, CWnd* pParentWnd, UINT nID);
-
- public:
- virtual ~CYearEdit();
-
- protected:
-
- afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnKillFocus(CWnd* pNewWnd);
-
- DECLARE_MESSAGE_MAP()
- };
- class CCalendarFrm : public CWnd
- {
- private:
- CFont m_oDispFont;
- public:
- CCalendar m_oCalendar;
- CCalendarFrm();
- void DateChange(LONG iYear, LONG iMonth);
- void DateChange2(LONG iYear, LONG iMonth, LONG iDay);
- CRect m_rect;
- public:
- void SetDate(WORD iYear, WORD iMonth, WORD iDay)
- {
- m_oCalendar.SetDate(iYear, iMonth, iDay);
- }
- void GetDate(WORD &iYear, WORD &iMonth, WORD &iDay)
- {
- m_oCalendar.GetDate(iYear, iMonth, iDay);
- }
-
- CFont * GetDispFont(){return &m_oDispFont;}
- public:
- virtual BOOL Create(RECT &rect, CWnd * pParentWnd, UINT nID);
- virtual ~CCalendarFrm();
-
- private:
- void l_PaintToday(CPaintDC &dc);
- void l_PaintBorder(CPaintDC &dc);
- void l_PaintChineseInfo(CPaintDC &dc);
- void l_CreateDispFont();
- protected:
- afx_msg void OnPaint();
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
-
- afx_msg void OnSelChange(LONG iYearMonth, LONG iDay);
- afx_msg void OnMonthChange();
- afx_msg void OnYearChange();
- afx_msg void OnTodayClick();
- DECLARE_MESSAGE_MAP()
- };
- #endif
|