CMFCPropertySheet 1 - Controls
Desktop version of Tabs
2025-12-26
Written by: xiaobin
Perform the following steps to use the CMFCPropertySheet class in your application:
- Derive a class from the CMFCPropertySheet class and name the class, for example, CMyPropertySheet.
- Construct a CMFCPropertyPage object for each property page.
- Call the CMFCPropertySheet::SetLook method in the CMyPropertySheet constructor.
A parameter of that method specifies that property pages shall be displayed either as tabs along the top or left of the property sheet;
tabs in the style of a Microsoft OneNote property sheet; buttons on a Microsoft Outlook toolbar control;
nodes on a tree control; or as a list of items on the left side of the property sheet.
- If you create a property sheet in the style of a Microsoft Outlook toolbar,
call the CMFCPropertySheet::SetIconsList method to associate an image list together with the property pages.
- Call the CMFCPropertySheet::AddPage method for each property page.
- Create a CMFCPropertySheet control and call its DoModal method.
omitted
Steps that can be omitted: Steps three and four.
If omitted, it becomes the same as CPropertySheet.
include file
#include "afxpropertypage.h"
#include <afxpropertysheet.h>
The difference between CMFCPropertyPage and CPropertyPage
CMFCPropertyPage:
friend class CMFCPopupMenu;
friend class CContextMenuManager;
friend class CMFCDropDownListBox;
friend class CMFCPropertySheet;
CPropertyPage:
friend class CPropertySheet;
Ref