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

Adds a new option to an item.

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

Use this function to add a new string to an item 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.