123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- #if !defined(AFX_HYPERLINK_H__D1625061_574B_11D1_ABBA_00A0243D1382__INCLUDED_)
- #define AFX_HYPERLINK_H__D1625061_574B_11D1_ABBA_00A0243D1382__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif
- class CHyperLink : public CStatic
- {
- public:
- int m_nParent;
- BOOL m_bDisable;
- int m_fontsize;
- BOOL m_bBlackBk;
- CHyperLink();
- virtual ~CHyperLink();
- public:
- public:
- void PositionWindow();
- void SetURL(CString strURL);
- CString GetURL() const;
- void SetColours(COLORREF crLinkColour, COLORREF crVisitedColour,
- COLORREF crHoverColour = -1);
- COLORREF GetLinkColour() const;
- COLORREF GetVisitedColour() const;
- COLORREF GetHoverColour() const;
- void SetVisited(BOOL bVisited = TRUE);
- BOOL GetVisited() const;
- void SetLinkCursor(HCURSOR hCursor);
- HCURSOR GetLinkCursor() const;
- void SetUnderline(BOOL bUnderline = TRUE);
- BOOL GetUnderline() const;
- void SetAutoSize(BOOL bAutoSize = TRUE);
- BOOL GetAutoSize() const;
-
-
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- protected:
- virtual void PreSubclassWindow();
-
- protected:
- HINSTANCE GotoURL(LPCTSTR url, int showcmd);
- void ReportError(int nError);
- LONG GetRegKey(HKEY key, LPCTSTR subkey, LPTSTR retdata);
- void SetDefaultCursor();
- protected:
- COLORREF m_crLinkColour, m_crVisitedColour;
- COLORREF m_crHoverColour;
- BOOL m_bOverControl;
- BOOL m_bVisited;
- BOOL m_bUnderline;
- BOOL m_bAdjustToFit;
- CString m_strURL;
- CFont m_Font;
- HCURSOR m_hLinkCursor;
- CToolTipCtrl m_ToolTip;
-
- protected:
-
- 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 int OnCreate(LPCREATESTRUCT lpCreateStruct);
-
- afx_msg void OnClicked();
- DECLARE_MESSAGE_MAP()
- };
- #endif
|