clock.h
来自「是一本书」· C头文件 代码 · 共 46 行
H
46 行
class CMyApp : public CWinApp
{
public:
virtual BOOL InitInstance ();
};
class CMainWindow : public CFrameWnd
{
protected:
BOOL m_bFullWindow;
BOOL m_bStayOnTop;
int m_nPrevSecond;
int m_nPrevMinute;
int m_nPrevHour;
void DrawClockFace (CDC* pDC);
void DrawSecondHand (CDC* pDC, int nLength, int nScale, int nDegrees,
COLORREF clrColor);
void DrawHand (CDC* pDC, int nLength, int nScale, int nDegrees,
COLORREF clrColor);
void SetTitleBarState ();
void SetTopMostState ();
void SaveWindowState ();
void UpdateSystemMenu (CMenu* pMenu);
public:
CMainWindow ();
virtual BOOL PreCreateWindow (CREATESTRUCT& cs);
BOOL RestoreWindowState ();
protected:
afx_msg int OnCreate (LPCREATESTRUCT lpcs);
afx_msg void OnGetMinMaxInfo (MINMAXINFO* pMMI);
afx_msg void OnTimer (UINT nTimerID);
afx_msg void OnPaint ();
afx_msg UINT OnNcHitTest (CPoint point);
afx_msg void OnSysCommand (UINT nID, LPARAM lParam);
afx_msg void OnContextMenu (CWnd* pWnd, CPoint point);
afx_msg void OnEndSession (BOOL bEnding);
afx_msg void OnClose ();
DECLARE_MESSAGE_MAP ()
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?