calendarview.h

来自「女性安全期计算(VC版) 里面利用了来自cODEpROJECT的关于ppToo」· C头文件 代码 · 共 52 行

H
52
字号
#pragma once


#include "ppToolTip\PPTooltip.h"
#include "CalendarDay.h"
// CCalendarView

typedef CList<CCalendarDay*, CCalendarDay*> DayList;

static const UINT glbBtns=42;			// Number of buttons on calendar
static  UCHAR nMonthDays[]={31,28,31,30,31,30,31,31,30,31,30,31};

class CCalendarView : public CWnd
{
	DECLARE_DYNAMIC(CCalendarView)

	WORD    m_iYear, m_iMonth, m_iDay;
	WORD	m_iMin;
	COLORREF m_dwBackColor,  m_dwForeColor;
	COLORREF m_dwSelColor,   m_dwSelForeColor;
	COLORREF m_dwTitleBkColor, m_dwTitleColor;
	CPPToolTip m_tooltip;
	CFont				m_Font;
	DayList				m_dayList1;
	DayList				m_dayList2;
public:
	CCalendarView();
	virtual ~CCalendarView();

protected:
	DECLARE_MESSAGE_MAP()
public:
	COLORREF m_colorBack;
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnPaint();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg void OnEnterIdle(UINT nWhy, CWnd* pWho);
	void SetDate(int iYear, int iMonth, int iDay);
	void Show(bool bShowTip);
private:
	BOOL m_bShowTip;
public:
	void InitData(void);
private:
	COLORREF m_crSafeDay;
	COLORREF m_crDangerousDay;
	COLORREF m_crMensesDay;
};


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?