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

📄 gendigitalclock.h

📁 VisualC高级编程技术精粹.rar
💻 H
字号:
// GenDigitalClock.h: interface for the CGenDigitalClock class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GENDIGITALCLOCK_H__9E176149_6F1A_4834_9DF1_71286A67A8E9__INCLUDED_)
#define AFX_GENDIGITALCLOCK_H__9E176149_6F1A_4834_9DF1_71286A67A8E9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000  afiseaza

class CGenDigitalClock  
{
public:
	CGenDigitalClock();
	virtual ~CGenDigitalClock();

	void DrawVerLine(CRect rect, CDC* pDC, bool bFlag);
	void DrawHorLine(CRect rect, CDC* pDC, bool bFlag);
	void DrawRect(CRect rect, CDC* pDC);
	void DrawRectForTime(int n, CRect rect, CDC* pDC);
	void DrawEllipse(CPoint cp1, CPoint cp2, int radius, CDC* pDC);
	void SetTime(short hour, short minute, short second, 
		          CRect rect, CDC* pDC);

	// 画刷
	CBrush fundal;
	CBrush inside;

	// 画笔
	CPen line;

	// 颜色
	COLORREF c_fundal;
	COLORREF c_inside;
	COLORREF c_line;
};

#endif // !defined(AFX_GENDIGITALCLOCK_H__9E176149_6F1A_4834_9DF1_71286A67A8E9__INCLUDED_)

⌨️ 快捷键说明

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