12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- /************************************************************************/
- /* Copyright (C), 2016-2020, [Home], 保留所有权利;
- /* 模 块 名:;
- /* 描 述:;
- /*
- /* 版 本:[V];
- /* 作 者:[Home];
- /* 日 期:[1/29/2017];
- /*
- /*
- /* 注 意:;
- /*
- /* 修改记录:[Home];
- /* 修改日期:;
- /* 修改版本:;
- /* 修改内容:;
- /************************************************************************/
- #ifndef __TITLE_TIP__
- #define __TITLE_TIP__
- #define TITLETIP_CLASSNAME _T("ZTitleTip")
- class CTitleTip : public CWnd
- {
- // Construction
- public:
- CTitleTip();
- virtual ~CTitleTip();
- virtual BOOL Create(CWnd *pParentWnd);
- // Attributes
- public:
- void SetParentWnd(CWnd* pParentWnd) { m_pParentWnd = pParentWnd; }
- CWnd* GetParentWnd() { return m_pParentWnd; }
- // Operations
- public:
- void Show(CRect rectTitle, LPCTSTR lpszTitleText,
- int xoffset = 0, LPRECT lpHoverRect = NULL,
- const LOGFONT* lpLogFont = NULL,
- COLORREF crTextClr = CLR_DEFAULT, COLORREF crBackClr = CLR_DEFAULT);
- void Hide();
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTitleTip)
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- virtual BOOL DestroyWindow();
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- CWnd *m_pParentWnd;
- CRect m_rectTitle;
- CRect m_rectHover;
- DWORD m_dwLastLButtonDown;
- DWORD m_dwDblClickMsecs;
- BOOL m_bCreated;
- // Generated message map functions
- protected:
- //{{AFX_MSG(CTitleTip)
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #endif // __TITLE_TIP__
|