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

📄 treelisttipctrl.h

📁 一个关于数据结结的
💻 H
字号:
#if !defined(AFX_TREELISTTIPCTRL_H__9590E030_E49D_4A65_A913_E0FD604ED3F7__INCLUDED_)
#define AFX_TREELISTTIPCTRL_H__9590E030_E49D_4A65_A913_E0FD604ED3F7__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CTreeListTipCtrl window
#define TREELISTTIPCTRL_CLASSNAME		_T("TurboDLL.TreeListTipCtrl")
#define WS_EX_LAYERED					0x00080000
#define ULW_COLORKEY					0x00000001
#define ULW_ALPHA						0x00000002

typedef BOOL (WINAPI *lpfnUpdateLayeredWindow)(	HWND hWnd, HDC hdcDst, POINT *pptDst, 
												SIZE *psize,HDC hdcSrc, POINT *pptSrc, 
												COLORREF crKey, BLENDFUNCTION *pblend, DWORD dwFlags );
typedef BOOL (WINAPI *lpfnSetLayeredWindowAttributes)( HWND hwnd, COLORREF crKey, BYTE xAlpha, DWORD dwFlags );


BOOL InitLayeredWindows();

class CTreeListCtrl;

class CTreeListTipCtrl : public CWnd
{
// Construction
public:
	CTreeListTipCtrl();
	virtual ~CTreeListTipCtrl();
	BOOL Create( CTreeListCtrl* pTreeListCtrl );

// Members
protected:
	DWORD			m_dwFadeStep;			// default   5 ( 0.05s )
	DWORD			m_dwFadeInTime;			// default 500 ( 0.50s )
	DWORD			m_dwFadeOutTime;		// default 200 ( 0.20s )

	BOOL			m_bLayeredWindows;		// has a layered window
	int				m_nAlpha;				// alpha

	CRect			m_rcItem;				// rect of item
	CRect			m_rcTip;				// rect of tip

	CString			m_strText;				// text of tip

	CFont			m_Font;					// font of tip
	UINT			m_uFormat;				// draw format

// Attributes
public:
	CTreeListCtrl*		m_pTreeListCtrl;	// parent CTreeListCtrl

// Operations
public:
	BOOL	Show( CRect rcText, LPCTSTR lpszText, UINT uFormat );
	void	Hide();
	void	SetFont();
	CFont*	GetFont();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTreeListTipCtrl)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL

// Implementation
public:

	// Generated message map functions
protected:
	//{{AFX_MSG(CTreeListTipCtrl)
	afx_msg void OnPaint();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_TREELISTTIPCTRL_H__9590E030_E49D_4A65_A913_E0FD604ED3F7__INCLUDED_)

⌨️ 快捷键说明

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