⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hyperlink.h

📁 著名的防火墙源代码
💻 H
字号:
//=============================================================================================
/*
	HyperLink.h

	Project	: XFILTER 1.0
	Author	: Tony Zhu
	Create Date	: 2001/08/06
	Email	: xstudio@xfilt.com
	URL		: http://www.xfilt.com

	Copyright (c) 2001-2002 XStudio Technology.
	All Rights Reserved.

	WARNNING: 
*/
//=============================================================================================

#if !defined(HYPERLINK_H_INCLUDED)
#define HYPERLINK_H_INCLUDED

#if _MSC_VER >= 1000
#pragma once
#endif 

class CHyperLink : public CStatic
{
public:
    CHyperLink();
    virtual ~CHyperLink();

public:
    void SetURL(CString strURL);

    void SetVisited(BOOL bVisited = TRUE);

    HINSTANCE GotoURL(LPCTSTR url, int showcmd);

    //{{AFX_VIRTUAL(CHyperLink)
    public:
    virtual BOOL PreTranslateMessage(MSG* pMsg);
    protected:
    virtual void PreSubclassWindow();
    //}}AFX_VIRTUAL

protected:
    LONG GetRegKey(HKEY key, LPCTSTR subkey, LPTSTR retdata);
    void PositionWindow();
    void SetDefaultCursor();

protected:
    COLORREF	m_crLinkColour;
	COLORREF	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(CHyperLink)
    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()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(HYPERLINK_H_INCLUDED)


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -