-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFOHyperLink.h
88 lines (71 loc) · 2.44 KB
/
FOHyperLink.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// FOHyperLink.h: interface for the CFOHyperLink class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_FOHYPERLINK_H__44FC73BC_F596_11DD_A43A_525400EA266C__INCLUDED_)
#define AFX_FOHYPERLINK_H__44FC73BC_F596_11DD_A43A_525400EA266C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CFOHyperLink : public CStatic
{
// Construction/destruction
public:
CFOHyperLink();
virtual ~CFOHyperLink();
// Attributes
public:
// Operations
public:
virtual void SetURL(CString strURL);
virtual CString GetURL() const;
virtual void SetColors(COLORREF crLinkColor, COLORREF crVisitedColor,
COLORREF crHoverColor = -1);
virtual COLORREF GetLinkColor() const;
virtual COLORREF GetVisitedColor() const;
virtual COLORREF GetHoverColor() const;
virtual void SetVisited(BOOL bVisited = TRUE);
virtual BOOL GetVisited() const;
virtual void SetLinkCursor(HCURSOR hCursor);
virtual HCURSOR GetLinkCursor() const;
virtual void SetUnderline(BOOL bUnderline = TRUE);
virtual BOOL GetUnderline() const;
virtual void SetAutoSize(BOOL bAutoSize = TRUE);
virtual BOOL GetAutoSize() const;
virtual HINSTANCE GotoURL(LPCTSTR url, int showcmd);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFOHyperLink)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void PreSubclassWindow();
//}}AFX_VIRTUAL
// Implementation
protected:
virtual void ReportError(int nError);
virtual LONG GetRegKey(HKEY key, LPCTSTR subkey, LPTSTR retdata);
virtual void PositionWindow();
virtual void SetDefaultCursor();
// Protected attributes
protected:
COLORREF m_crLinkColor, m_crVisitedColor;
COLORREF m_crHoverColor;
BOOL m_bOverControl;
BOOL m_bVisited;
BOOL m_bUnderline;
BOOL m_bAdjustToFit;
CString m_strURL;
CFont m_Font;
HCURSOR m_hLinkCursor;
CToolTipCtrl m_ToolTip;
// Generated message map functions
protected:
//{{AFX_MSG(CFOHyperLink)
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//}}AFX_MSG
afx_msg void OnClicked();
DECLARE_MESSAGE_MAP()
};
#endif // !defined(AFX_FOHYPERLINK_H__44FC73BC_F596_11DD_A43A_525400EA266C__INCLUDED_)