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

📄 hintwindow.h

📁 The application wizard has created this SoccerDoctor application for you. This application not onl
💻 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 + -