TB_SETCMDID

This message sets the command identifier of a toolbar button.

At a Glance

Header file: Commctrl.h
Windows CE versions: 1.0 and later

Syntax

  1. TB_SETCMDID wParam = (WPARAM)(UINT) index;
    lParam = (WPARAM)(UINT) cmdId;

Parameters

index

Zero-based index of the button for which the command identifier is to be set.

cmdId

Command identifier.

Return Values

TRUE indicates success. FALSE indicates failure.