Compartilhar via


CMFCPropertyGridProperty::AddSubItem

Adds a child item to a property.

BOOL AddSubItem(
   CMFCPropertyGridProperty* pProp 
);

Parameters

  • [in] pProp
    Pointer to a property to add.

Return Value

TRUE if the specified property is successfully added as a child property. FALSE if the property is not added because it already occurs in the parent property.

Remarks

Use this method to create a hierarchical list of parent and child properties. After a child property is added, the parent property automatically displays an expand box control that is designated by a plus sign (+). When the user clicks the plus sign, the parent property expands and displays any child property items.

Requirements

Header: afxpropertygridctrl.h

See Also

Reference

CMFCPropertyGridProperty Class

Hierarchy Chart