diaclockctrl.h
来自「symbian中时钟的应用开发 一个动态的时钟.」· C头文件 代码 · 共 34 行
H
34 行
// DigClockCtrl.h: interface for the CDigClockCtrl class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DIGCLOCKCTRL_H__61105DB3_7944_4F1E_8480_B22A3BA69408__INCLUDED_)
#define AFX_DIGCLOCKCTRL_H__61105DB3_7944_4F1E_8480_B22A3BA69408__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <coecntrl.h>
class CDiaClockCtrl : public CCoeControl
{
public:
CDiaClockCtrl();
~CDiaClockCtrl();
void ConstructL();
void SetTime(TDateTime aTime) { iTime = aTime;}
void SetSelected(TBool aSelected){iSelected = aSelected;}
private:
void Draw(const TRect& /*aRect*/) const;
void DrawClock(CWindowGc& aGc,const TRect & aRect,TInt aHour/*<=12*/,TInt aMin,TInt aSec) const;
private:
TDateTime iTime;
TBool iSelected;
};
#endif // !defined(AFX_DIGCLOCKCTRL_H__61105DB3_7944_4F1E_8480_B22A3BA69408__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?