CMFCToolBarComboBoxButton::SelectItemAll
Selects an item in the list box of a combo box button that has a specified command ID.
static BOOL SelectItemAll(
UINT uiCmd,
int iIndex
);
static BOOL SelectItemAll(
UINT uiCmd,
DWORD_PTR dwData
);
static BOOL SelectItemAll(
UINT uiCmd,
LPCTSTR lpszText
);
Parameters
[in] uiCmd
The command ID of the combo box button that contains the list box.[in] iIndex
The zero-based index of the item in the list box. A value of -1 removes any current selection in the list box and clears the edit box.[in] dwData
The data of an item in the list box.[in] lpszText
The text of an item in the list box.
Return Value
TRUE if the method was successful; otherwise FALSE.
Requirements
Header: afxtoolbarcomboboxbutton.h