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
- #define TITLETIP_CLASSNAME _T("ZTitleTip")
- class CTitleTip : public CWnd
- {
-
- public:
- CTitleTip();
- virtual ~CTitleTip();
-
-
- public:
-
-
- public:
-
-
-
-
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- virtual BOOL Create(CWnd* pParentWnd);
-
-
-
- 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;
-
- protected:
-
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
-
- DECLARE_MESSAGE_MAP()
- };
- #endif
|