BCGControlBar Pro for MFC
int CBCGPGridItem::FindOption ( LPCTSTR  lpszName,
BOOL  bCaseSensitive = TRUE,
BOOL  bWholeWord = TRUE,
int  nStartIndex = -1 
) const

Searches for the option by name.

Parameters
lpszNameThe option name.
bCaseSensitiveTrue to case sensitive.
bWholeWordTrue to whole word.
nStartIndexThe start index.
Returns
A zero-based index of the option or -1 if option wasn't found.