staticlink.h
来自「一个简单的数据库程序」· C头文件 代码 · 共 71 行
H
71 行
#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 + =
减小字号Ctrl + -
显示快捷键?