📄 readme.wzd
字号:
/////////////////////////////////////////////////////////////////////
// Add a Property Sheet "Control" to a Dialog Box...
/////////////////////////////////////////////////////////////////////
// 1) Use the Dialog Editor to create a dialog template for each property
// sheet page. Give them properties of Child and no border.
//
// 2) Use the ClassWizard to create a property page class for each template.
//
// 3) Embed a CPropertySheet class in the dialog class.
//
// 4) Add a static control to the dialog box's template with the
// size and position where you want the property sheet to appear.
// 5) Add a WM_INITDIALOG message handler to the dialog's class and
// get the rectangle of this static control:
CRect rect;
m_ctrlStatic.GetWindowRect(&rect);
ScreenToClient(&rect);
// 6) In the same function, create and add each page to the property sheet:
m_pFirstPage=new CFirstPage;
m_pSecondPage=new CSecondPage;
m_sheet.AddPage(m_pFirstPage);
m_sheet.AddPage(m_pSecondPage);
// 7) Finally, create the property sheet and position it over the static control:
m_sheet.Create(this,WS_VISIBLE|WS_CHILD);
m_sheet.MoveWindow(&rect);
/////////////////////////////////////////////////////////////////////
// From: Visual C++ MFC Programming by Example by John E. Swanke
// Copyright (C) 1999 jeswanke. All rights reserved.
/////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -