⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calendarview.h

📁 女性安全期计算(VC版) 里面利用了来自cODEpROJECT的关于ppToolTip,CreditsCtrl,HighTime等有关的应用。
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -