📄 hintwindow.h
字号:
#ifndef _HINTWINDOW_H_
#define _HINTWINDOW_H_
// CHintWindow
class CHintWindow : public CWnd
{
DECLARE_DYNAMIC(CHintWindow)
public:
CHintWindow();
virtual ~CHintWindow();
afx_msg void OnPaint();
void ShowHint(const CPoint& winPos,const CString& strHint);
void CreateHintWindow(CWnd* pParentWnd);
void SetDelayTime(int nDelay){ _nDelay = nDelay; } // 延迟的时间(毫秒)
int GetDelayTime() const { return _nDelay; } // 获得延迟时间
void SetLastTime(int nLast){ _nLast = nLast; }
int GetLastTime() const { return _nLast; }
protected:
DECLARE_MESSAGE_MAP()
private:
CString _strHint;
CPoint _winPos;
CPen _tipPen;
CFont _tipFont;
CBrush _tipBrush;
int _nDelay; // 延迟
int _nLast; // 持续的时间
bool _bDisplayed; // 只显示一次
void StartDelayTimer();
void StopDelayTimer();
void StartLastTimer();
void StopLastTimer();
public:
afx_msg void OnTimer(UINT nIDEvent);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -