TitleTip.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #if !defined(AFX_TITLETIP_H__C7165DA1_187F_11D1_992F_895E185F9C72__INCLUDED_)
  2. #define AFX_TITLETIP_H__C7165DA1_187F_11D1_992F_895E185F9C72__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // TitleTip.h : header file
  7. //
  8. #define TITLETIP_CLASSNAME _T("ZTitleTip")
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CTitleTip window
  11. class CTitleTip : public CWnd
  12. {
  13. // Construction
  14. public:
  15. CTitleTip();
  16. virtual ~CTitleTip();
  17. virtual BOOL Create( CWnd *pParentWnd);
  18. // Attributes
  19. public:
  20. // Operations
  21. public:
  22. void Show(CRect rectTitle, LPCTSTR lpszTitleText,
  23. int xoffset = 0, LPRECT lpHoverRect = NULL, LPLOGFONT lpLogFont = NULL);
  24. void Hide();
  25. // Overrides
  26. // ClassWizard generated virtual function overrides
  27. //{{AFX_VIRTUAL(CTitleTip)
  28. public:
  29. virtual BOOL PreTranslateMessage(MSG* pMsg);
  30. //}}AFX_VIRTUAL
  31. // Implementation
  32. public:
  33. protected:
  34. CWnd *m_pParentWnd;
  35. CRect m_rectTitle;
  36. CRect m_rectHover;
  37. // Generated message map functions
  38. protected:
  39. //{{AFX_MSG(CTitleTip)
  40. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  41. //}}AFX_MSG
  42. DECLARE_MESSAGE_MAP()
  43. };
  44. /////////////////////////////////////////////////////////////////////////////
  45. //{{AFX_INSERT_LOCATION}}
  46. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  47. #endif // !defined(AFX_TITLETIP_H__C7165DA1_187F_11D1_992F_895E185F9C72__INCLUDED_)