📄 statichandset.h
字号:
#if !defined(AFX_STATICHANDSET_H__8DB3EAB1_E134_41E6_A3BB_7D5A4926D11D__INCLUDED_)
#define AFX_STATICHANDSET_H__8DB3EAB1_E134_41E6_A3BB_7D5A4926D11D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// StaticHandset.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CStaticHandset window
class CStaticHandset : public CStatic
{
//Construction
public:
CStaticHandset();
virtual~CStaticHandset();
//Attributes
public:
//Operations
public:
void SetURL(CString strURL);
CString GetURL()const;
void SetColours(COLORREF crLinkColour,COLORREF crVisitedColour,COLORREF crHoverColour);
COLORREF GetLinkColour()const;
COLORREF GetVisitedColour()const;
COLORREF GetHoverColour()const;
void SetVisited(BOOL bVisited = TRUE);
BOOL GetVisited()const;
void SetLinkCursor(HCURSOR hCursor);
HCURSOR GetLinkCursor()const;
void SetUnderline(BOOL bUnderline = TRUE);
BOOL GetUnderline()const;
void SetAutoSize(BOOL bAutoSize = TRUE);
BOOL GetAutoSize()const;
//Implementation
HINSTANCE GotoURL(LPCTSTR url,int showcmd);
void ReportError(int nError);
LONG GetRegKey(HKEY key,LPCTSTR subkey,LPTSTR retdata);
void PositionWindow();
void SetDefaultCursor();
//Overrides
//ClassWizardgeneratedvirtualfunctionoverrides
//{{AFX_VIRTUAL(CStaticHandset)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void PreSubclassWindow();
//}}AFX_VIRTUAL
//Protectedattributes
protected:
protected:
COLORREF m_crLinkColour,m_crVisitedColour;//Hyperlinkcolours
COLORREF m_crHoverColour;//Hovercolour
BOOL m_bOverControl;//cursorovercontrol?
BOOL m_bVisited;//Hasitbeenvisited?
BOOL m_bUnderline;//underlinehyperlink?
BOOL m_bAdjustToFit;//Adjustwindowsizetofittext?
CString m_strURL;//hyperlinkURL
CFont m_Font;//Underlinefontifnecessary
HCURSOR m_hLinkCursor;//Cursorforhyperlink
CToolTipCtrl m_ToolTip;
//Generatedmessagemapfunctions
protected:
//{{AFX_MSG(CStaticHandset)
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 Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STATICHANDSET_H__8DB3EAB1_E134_41E6_A3BB_7D5A4926D11D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -