📄 staticlink.h
字号:
#if !defined(AFX_STATICLINK_H__E0A72AD3_528A_11D4_AB89_0090270D3A7F__INCLUDED_)
#define AFX_STATICLINK_H__E0A72AD3_528A_11D4_AB89_0090270D3A7F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// StaticLink.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CStaticLink window
class CStaticLink : public CStatic
{
// Construction
public:
CStaticLink();
// Attributes
public:
void SetLinkCursor(HCURSOR hCursor) { m_hLinkCursor = hCursor; }
void SetLink(LPCTSTR lpszLink);
protected:
// you can change these any time:
COLORREF m_colorUnvisited; // color for unvisited
COLORREF m_colorVisited; // color for visited
BOOL m_bVisited; // whether visited or not
HCURSOR m_hLinkCursor;
CToolTipCtrl m_tooltip;
// URL/filename for non-text controls (e.g., icon, bitmap) or when link is
// different from window text. If you don't set this, CStaticIcon will
// use GetWindowText to get the link.
CString m_strLink;
CFont m_font; // underline font for text control
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStaticLink)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void PreSubclassWindow();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CStaticLink();
// Generated message map functions
protected:
//{{AFX_MSG(CStaticLink)
afx_msg void OnClicked();
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STATICLINK_H__E0A72AD3_528A_11D4_AB89_0090270D3A7F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -