BCGControlBar Pro for MFC
BOOL CBCGPProp::AddOption ( LPCTSTR  lpszOption,
BOOL  bInsertUnique = TRUE,
DWORD_PTR  dwData = 0 
)

Adds a new option to a property.

Returns
TRUE if the new option has been added; FALSE if the specified option already exists in the property and bInsertUnique flag is set to TRUE.

Use this function to add a new string to a property that contains a combo box with a list of text strings (options).

If bInsertUnique flag is set to FALSE, the option specified by lpszOption will be added in any case.

Parameters
lpszOptionSpecifies the text string containing the option to add.
bInsertUniqueIf this flag is TRUE, then only unique items are inserted.
dwDataA data value associated with the option.