123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef _STATLINK_H
- #define _STATLINK_H
- #include "HyprLink.h"
- class CStaticLink : public CStatic {
- public:
- DECLARE_DYNAMIC(CStaticLink)
- CStaticLink(LPCTSTR lpText = NULL, BOOL bDeleteOnDestroy=FALSE);
- ~CStaticLink() { }
-
-
- CHyperlink m_link;
- COLORREF m_color;
-
-
- static COLORREF g_colorUnvisited;
- static COLORREF g_colorVisited;
-
-
-
- static HCURSOR g_hCursorLink;
- protected:
- CFont m_font;
- BOOL m_bDeleteOnDestroy;
- virtual void PostNcDestroy();
-
- DECLARE_MESSAGE_MAP()
- afx_msg LRESULT OnNcHitTest(CPoint point);
- afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
- };
- #endif _STATLINK_H
|