📄 mypropertysheet.h
字号:
#if !defined(AFX_MYPROPERTYSHEET_H__D17EA810_E6A4_11D1_BB81_0040F684401F__INCLUDED_)
#define AFX_MYPROPERTYSHEET_H__D17EA810_E6A4_11D1_BB81_0040F684401F__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// MyPropertySheet.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMyPropertySheet
class CMyPropertySheet : public CPropertySheet
{
DECLARE_DYNAMIC(CMyPropertySheet)
// Construction
public:
CMyPropertySheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
CMyPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
// Attributes
public:
//用来保存添加文本的字体
CFont m_font;
//用来保存添加的文本
CString m_Text;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyPropertySheet)
public:
virtual BOOL OnInitDialog();
//}}AFX_VIRTUAL
// Implementation
public:
void SetFont(CString strName, int nHeight = 12, int nWeight = FW_BOLD,
BYTE bItalic = TRUE, BYTE bUnderline = FALSE);
void SetText(CString strText);
virtual ~CMyPropertySheet();
// Generated message map functions
protected:
//{{AFX_MSG(CMyPropertySheet)
afx_msg void OnPaint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYPROPERTYSHEET_H__D17EA810_E6A4_11D1_BB81_0040F684401F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -