📄 gprsstatic.h
字号:
// clockstrl.h : Defines the class behaviors for the application.
//
////////////////////////////////// Macros ///////////////////////////
#ifndef _GPRSSTATIC_H
#define _GPRSSTATIC_H
////////////////////////////////// Classes //////////////////////////
class CGprsStatic : public CStatic
{
public:
//Constructors / Destructors
CGprsStatic();
CGprsStatic(UINT BackgroundID,BOOL BackGroudEnable);
protected:
enum HandType
{
HOUR,
MINUTE,
SECOND
};
//{{AFX_VIRTUAL(CTitleCtrl)
virtual void PreSubclassWindow();
//}}AFX_VIRTUAL
//{{AFX_MSG(CClockCtrl)
afx_msg void OnPaint();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
COLORREF m_ColorBackground;
COLORREF m_ColorFace;
COLORREF m_ColorCaption;
CRgn m_rgn;// window region
CBitmap m_bmpBackground;
UINT m_BMPBackgroundID;
BOOL m_DispBMPBackground;
CDC memDC;
BOOL m_bBkTransparent;
BOOL m_bDCStored;
CString m_csStrCaptionName;
UINT m_uiFontHight;
UINT m_uiFontWidth;
public:
void Init();
void DrawBackGround();
void Refresh();
void SetTransparent(BOOL bTransparent);
void PreDrawBackGround();
void DrawCaptionFace();
void DrawInterFace();//元素入口
void SetCaption(LPTSTR ptsCaptionName,COLORREF colorfont,UINT uifontHight,UINT uifontWidth);
};
#endif //_CLOCKCTRL_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -