demopsheet.cpp
来自「< MFC经典问答>>是微软类库经常遇到的问题」· C++ 代码 · 共 49 行
CPP
49 行
// 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 + =
减小字号Ctrl + -
显示快捷键?