1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #if !defined(AFX_TITLETIP_H__FB05F243_E98F_11D0_82A3_20933B000000__INCLUDED_)
- #define AFX_TITLETIP_H__FB05F243_E98F_11D0_82A3_20933B000000__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- // TitleTip.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CTitleTip window
- #define TITLETIP_CLASSNAME _T("ZTitleTip")
- /**
- * Titletips similar to tooltips. For ListView controls, TitleTips are used to
- * display text of those cells which are not wide enough to display the text
- * completely. TitleTips show up as soon as the mouse moves over the cell.
- */
- class CTitleTip : public CWnd
- {
- // Construction
- public:
- CTitleTip();
- virtual ~CTitleTip();
-
- // Attributes
- public:
-
- // Operations
- public:
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTitleTip)
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- virtual BOOL Create(CWnd* pParentWnd);
- //}}AFX_VIRTUAL
-
- // Implementation
- public:
- int GetHorzSpace() {return m_iHorzSpace;}
- void SetBackground(HBRUSH brshBackground);
- void SetBkColor(COLORREF crColor);
- void SetTextColor(COLORREF crColor);
- void Show(CRect rectTitle, CString sTitleText, int xoffset = 0);
- static void RegisterWindowClass();
-
- protected:
- CWnd* m_pParentWnd;
- CRect m_rectTitle;
- HBRUSH m_brshBackground;
- COLORREF m_clrBackground;
- COLORREF m_clrText;
- int m_iHorzSpace;
- // Generated message map functions
- protected:
- //{{AFX_MSG(CTitleTip)
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations
- // immediately before the previous line.
- #endif // !defined(AFX_TITLETIP_H__FB05F243_E98F_11D0_82A3_20933B000000__INCLUDED_)
|