Datecal.h
资源名称:TestClnd.zip [点击查看]
上传用户:shlb123
上传日期:2007-01-01
资源大小:73k
文件大小:2k
源码类别:
ActiveX/DCOM/ATL
开发平台:
Visual C++
- //{{AFX_INCLUDES()
- //#include "msacal70.h"
- #include "calendar.h"
- //}}AFX_INCLUDES
- #if !defined(AFX_DATECAL_H__E1CC6EC1_FB03_11D1_817F_444553540000__INCLUDED_)
- #define AFX_DATECAL_H__E1CC6EC1_FB03_11D1_817F_444553540000__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- // DateCal.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CDateCal dialog
- class CDateCal : public CDialog
- {
- // Construction
- public:
- CDateCal(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CDateCal)
- enum { IDD = IDD_DATE_CALENDAR };
- CButton m_butReset;
- CButton m_butPrevYear;
- CButton m_butPrevMonth;
- CButton m_butNextYear;
- CButton m_butNextMonth;
- CCalendar m_calDate;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDateCal)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- public:
- short m_nDay;
- short m_nMonth;
- short m_nYear;
- static char* MONTHS[12];
- protected:
- HICON m_hIcon;
- int GetNewMonth(const CString& rString ) const;
- // Generated message map functions
- //{{AFX_MSG(CDateCal)
- virtual BOOL OnInitDialog();
- virtual void OnOK();
- afx_msg void OnPrevYear();
- afx_msg void OnPrevMonth();
- afx_msg void OnReset();
- afx_msg void OnNextMonth();
- afx_msg void OnNextYear();
- afx_msg void OnNewYearDateCalendar();
- afx_msg void OnNewMonthDateCalendar();
- afx_msg void OnBeforeUpdateDateCalendar(short FAR* Cancel);
- DECLARE_EVENTSINK_MAP()
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DATECAL_H__E1CC6EC1_FB03_11D1_817F_444553540000__INCLUDED_)