📄 demopsheet.cpp
字号:
// DemoPSheet.cpp : implementation file
//
#include "stdafx.h"
#include "ChangeTabCaption.h"
#include "DemoPSheet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDemoPSheet
IMPLEMENT_DYNAMIC(CDemoPSheet, CPropertySheet)
CDemoPSheet::CDemoPSheet(CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(IDS_PSHEET_CAPTION, pParentWnd, iSelectPage)
{
AddPage( &m_CoordsPPage ); // First page
AddPage( &m_ShapePPage ); // Second page
}
CDemoPSheet::~CDemoPSheet()
{
}
BEGIN_MESSAGE_MAP(CDemoPSheet, CPropertySheet)
//{{AFX_MSG_MAP(CDemoPSheet)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDemoPSheet message handlers
void CDemoPSheet::SetTabCaption( int nIndex, LPCTSTR szCaption )
{
ASSERT( nIndex >= 0 && nIndex < GetPageCount() );
CPropertyPage* pPage = GetPage( nIndex );
pPage->m_psp.pszTitle = szCaption;
pPage->m_psp.dwFlags |= PSP_USETITLE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -