Partager via


CMFCToolBarComboBoxButton::SelectItem

Selects an item in the list box.

BOOL SelectItem(
   int iIndex,
   BOOL bNotify=TRUE 
);
BOOL SelectItem(
   DWORD_PTR dwData 
);
BOOL SelectItem(
   LPCTSTR lpszText 
);

Parameters

  • [in] iIndex
    The zero-based index of an item in the list box.

  • [in] bNotify
    TRUE to notify the combo box button of the selection; otherwise FALSE.

  • [in] dwData
    The data associated with 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

See Also

Reference

CMFCToolBarComboBoxButton Class

Hierarchy Chart