Compartir a través de


CMFCPropertyGridCtrl::DeleteProperty

Deletes the specified property from the property grid control.

BOOL DeleteProperty(
   CMFCPropertyGridProperty*& pProp,
   BOOL bRedraw=TRUE,
   BOOL bAdjustLayout=TRUE 
);

Parameters

  • [in] pProp
    Pointer to a property.

  • [in] bRedraw
    TRUE to redraw the property grid control; otherwise, FALSE. The default value is TRUE.

  • [in] bAdjustLayout
    TRUE to recalculate how to draw all the text, images, and items in the property grid control, and then draw the control; otherwise, FALSE. The default value is TRUE.

Return Value

TRUE if this method is successful; otherwise, FALSE.

Remarks

Use this method to delete a property, and any sub-items, from the property grid control.

Requirements

Header: afxPropertyGridCtrl.h

See Also

Reference

CMFCPropertyGridCtrl Class

Hierarchy Chart