CMFCPropertySheetCategoryInfo Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents a node in a tree control.
class CMFCPropertySheetCategoryInfo : public CObject
Members
Public Constructors
Name |
Description |
---|---|
CMFCPropertySheetCategoryInfo::CMFCPropertySheetCategoryInfo |
Constructs a CMFCPropertySheetCategoryInfo object. |
CMFCPropertySheetCategoryInfo::~CMFCPropertySheetCategoryInfo |
Destructor. |
Public Methods
Name |
Description |
---|---|
CMFCPropertySheetCategoryInfo::GetThisClass |
Used by the framework to obtain a pointer to the CRuntimeClass object that is associated with this class type. |
Remarks
This class supports the MFC framework infrastructure and is not intended to be used directly from your code.
A tree control is implemented as a property sheet and a set of property pages. A node in a tree control is also referred to as a category, and is represented by a CMFCPropertySheetCategoryInfo category object.
The CMFCPropertySheet::AddTreeCategory method returns a pointer to a property sheet category object. That pointer is used in subsequent calls to the CMFCPropertySheet::AddTreeCategory and CMFCPropertySheet::AddPageToTree methods.
Example
The following example demonstrates how to retrieve a pointer to a CMFCPropertySheetCategoryInfo object by using the CMFCPropertySheet::AddTreeCategory method. This example is part of the VisualStudioDemo Sample: MFC Visual Studio Application.
// The second parameter is the zero based index of an icon that is displayed when
// the control property page is not selected.
// The third parameter is the zero based index of an icon that is displayed when
// the control property page is selected.
CMFCPropertySheetCategoryInfo* pCat1 = AddTreeCategory(_T("Environment"), 0, 1);
Inheritance Hierarchy
Requirements
Header: afxpropertysheet.h
See Also
Reference
CMFCPropertySheet::AddTreeCategory
CMFCPropertySheet::AddPageToTree