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

📄 tooltipex.h

📁 visual c++ 实例编程
💻 H
字号:
#if !defined(AFX_TOOLTIPEX_H__29CD7A48_6617_11D4_B8C4_E62AF59E9843__INCLUDED_)
#define AFX_TOOLTIPEX_H__29CD7A48_6617_11D4_B8C4_E62AF59E9843__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ToolTipEx.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CToolTipEx window

class CToolTipEx : public CToolTipCtrl
{
public:
	CToolTipEx();
	virtual ~CToolTipEx();

	BOOL Create( CWnd* pParentWnd, BOOL bTrackState = FALSE, DWORD dwInitial = 200, DWORD dwAutoPop = 2000, BOOL bActivate = TRUE);

	BOOL AddTool( CWnd *pWnd, UINT uStringToolID, const CRect *pRect = NULL);
	BOOL AddTool( CWnd *pWnd, LPCTSTR lpszTip, const CRect *pRect = NULL) {
		return InternalAddTool( pWnd, lpszTip, pRect);
	}

	void RelayEvent(LPMSG lpMsg);
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CToolTipEx)
	//}}AFX_VIRTUAL

	static CSize szOffset;
	static CString strStandardTextAddition;
	//standard text to be appended in the end of the text string

public:

protected:
	//{{AFX_MSG(CToolTipEx)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

protected:
	void CheckForTrack(LPMSG lpMsg);
	BOOL InternalAddTool( CWnd *pWnd, LPCTSTR lpszTip, const CRect *pRect = NULL);

protected:
	BOOL bTrackingState;
	HWND  m_hLastTrackedWnd;
	UINT  m_uLastTrackedTipID;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TOOLTIPEX_H__29CD7A48_6617_11D4_B8C4_E62AF59E9843__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -