CMFCPropertyGridProperty::AddOption

Adds a new list item to a property list control.

BOOL AddOption(
   LPCTSTR lpszOption,
   BOOL bInsertUnique=TRUE 
);

Parameters

  • [in] lpszOption
    The list item (option) to add.

  • [in] bInsertUnique
    TRUE to add the list item only if it does not already exist; otherwise, FALSE. The default value is TRUE.

Return Value

TRUE, which means that the list item is added. Otherwise, FALSE, which means that the list item is not added because the bInsertUnique parameter is TRUE and the list item specified by the lpszOption parameter already exists.

Requirements

Header: afxpropertygridctrl.h

See Also

Reference

CMFCPropertyGridProperty Class

Hierarchy Chart