?? hyperlinker.h
字號(hào):
#if !defined(AFX_HYPERLINKER_H__294375CE_81BF_45A7_812B_705722B344AF__INCLUDED_)
#define AFX_HYPERLINKER_H__294375CE_81BF_45A7_812B_705722B344AF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// HyperLinker.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CHyperLinker window
class CHyperLinker : public CStatic
{
public:
CHyperLinker();
virtual ~CHyperLinker();
public:
COLORREF m_InitColor; //文本初始顏色
COLORREF m_VisitedColor; //文本被訪問(wèn)過(guò)后的顏色
COLORREF m_CoverColor; //鼠標(biāo)懸浮在文本上方時(shí)的顏色
BOOL m_bAboveControl; // 是否鼠標(biāo)移到控件上
BOOL m_bVisited; // 是否被訪問(wèn)
BOOL m_bUnderLine; // 是否有下劃線(xiàn)
CString m_sURL; // URL或者應(yīng)用程序的位置
CFont m_Font; // 設(shè)定字體
HCURSOR m_hLinkCursor; // 光標(biāo)
public:
void SetAttribute(CString url="www.xici.net",COLORREF InitColor=RGB(0,0,255), COLORREF VisitedColor=RGB(255,0,0),
COLORREF CoverColor=RGB(125,125,0),BOOL bUnderLine=TRUE);
BOOL OpenUsingShellExecute();
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHyperLinker)
protected:
virtual void PreSubclassWindow();
//}}AFX_VIRTUAL
protected:
// Generated message map functions
//{{AFX_MSG(CHyperLinker)
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_HYPERLINKER_H__294375CE_81BF_45A7_812B_705722B344AF__INCLUDED_)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -