Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.4 KiB

  1. // HotLink.h : header file
  2. //
  3. #ifndef _HotLink_h_file_123987_
  4. #define _HotLink_h_file_123987_
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CHotLink window
  7. class CHotLink : public CButton
  8. {
  9. // Construction
  10. public:
  11. CHotLink();
  12. // Attributes
  13. public:
  14. BOOL m_fBrowse;
  15. BOOL m_fExplore;
  16. BOOL m_fOpen;
  17. // Operations
  18. public:
  19. void Browse();
  20. void Explore();
  21. void Open();
  22. virtual void DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct );
  23. // set the title string
  24. void SetTitle( CString sz );
  25. // Overrides
  26. // ClassWizard generated virtual function overrides
  27. //{{AFX_VIRTUAL(CHotLink)
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. public:
  31. virtual ~CHotLink();
  32. // Generated message map functions
  33. protected:
  34. //{{AFX_MSG(CHotLink)
  35. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  36. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  37. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  38. //}}AFX_MSG
  39. DECLARE_MESSAGE_MAP()
  40. // height and width of the displayed text
  41. void GetTextRect( CRect &rect );
  42. CSize m_cpTextExtents;
  43. // tracking the mouse flag
  44. BOOL m_CapturedMouse;
  45. // init the font
  46. BOOL m_fInitializedFont;
  47. };
  48. /////////////////////////////////////////////////////////////////////////////
  49. #endif /*_HotLink_h_file_123987_*/