TB_SETCMDID (Compact 2013)

3/28/2014

This message sets the command identifier of a toolbar button or the specified central menu item.

Syntax

TB_SETCMDID
    wParam = (WPARAM)(UINT) index;
  lParam = (LPARAM)(UINT) cmdId;

Parameters

  • index
    Zero-based index of the button or central menu item for which the command identifier is to be set.
  • cmdId
    Command identifier.

Return Value

TRUE indicates success. FALSE indicates failure.

Requirements

Header

commctrl.h

See Also

Reference

Toolbar Controls Messages