// LabelLink.h : header file // // // LabelLink static control. // #if !defined(AFX_LABELLINK_H_04ET323B01_023500_0204251998_ENG_INCLUDED_) #define AFX_LABELLINK_H_04ET323B01_023500_0204251998_ENG_INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 ///////////////////////////////////////////////////////////////////////////// // CLabelLink window class CLabelLink : public CStatic { DECLARE_DYNAMIC(CLabelLink) CLabelLink(); virtual ~CLabelLink(); // Operations public: // Use this if you want to subclass and also set different URL BOOL SubclassDlgItem(UINT nID, CWnd* pParent, LPCTSTR lpszURL=NULL) { m_strURL = lpszURL; return CStatic::SubclassDlgItem(nID, pParent); } // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CLabelLink) protected: virtual void PreSubclassWindow(); //}}AFX_VIRTUAL // Implementation protected: // Protected attributes protected: static HCURSOR g_hLinkCursor; // LabelLink mouse cursor BOOL m_bOverControl; // Is cursor over control CString m_strURL; // LabelLink URL string // Generated message map functions protected: //{{AFX_MSG(CLabelLink) 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 void OnLButtonUp(UINT nFlags, CPoint point); afx_msg UINT OnNcHitTest(CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line #endif // !defined(AFX_LABELLINK_H_04ET323B01_023500_0204251998_ENG_INCLUDED_)