?? readme.wzd
字號(hào):
/////////////////////////////////////////////////////////////////////
// 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.
/////////////////////////////////////////////////////////////////////
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -