8 #ifndef _INC_CHyperLink_H
9 #define _INC_CHyperLink_H
10 #ifndef NO_PRAGMA_ONCE
14 #include "../GrayLibBase.h"
16 #include "../Geometry/cRectI.h"
21 class CHyperLink :
public CStatic
26 typedef CStatic SUPER_t;
30 virtual ~CHyperLink();
35 UL_Hover = -1, UL_None = 0, UL_Always = 1
48 return m_crLinkColour;
52 return m_crVisitedColour;
56 return m_crHoverColour;
59 void SetVisited(BOOL bVisited =
true);
60 BOOL GetVisited()
const
65 void SetLinkCursor(HCURSOR hCursor);
66 HCURSOR GetLinkCursor()
const
71 void SetUnderline(UnderLine_TYPE nUnderline = UL_Hover);
72 UnderLine_TYPE GetUnderline()
const
77 void SetAutoSize(BOOL bAutoSize =
true);
78 BOOL GetAutoSize()
const
80 return m_bAdjustToFit;
87 virtual BOOL PreTranslateMessage(MSG* pMsg);
88 virtual BOOL DestroyWindow();
90 virtual void PreSubclassWindow();
95 void ReportError(
HRESULT nError);
96 void PositionWindow();
97 void SetDefaultCursor();
107 UnderLine_TYPE m_nUnderline;
108 HCURSOR m_hLinkCursor;
112 CFont m_UnderlineFont;
114 CToolTipCtrl m_ToolTip;
121 afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
122 afx_msg BOOL OnSetCursor(
CWnd* pWnd, UINT nHitTest, UINT message);
123 afx_msg
void OnMouseMove(UINT nFlags,
CPoint point);
124 afx_msg
void OnTimer(UINT_PTR nIDEvent);
125 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
127 afx_msg
void OnClicked();
128 DECLARE_MESSAGE_MAP()
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
UINT32 COLORREF
ABGR (high to low bits)
Definition: cVariantData.h:21
cWndHandle CWnd
Definition: cWndHandle.h:669
cPoint2i CPoint
Compatible with MFC 2d CPoint,CRect.
Definition: cPoint2.h:65
cStringT< GChar_t > cString
Definition: cString.h:636