TB_COMMANDTOINDEX message

Retrieves the zero-based index for the button associated with the specified command identifier.

Parameters

wParam

Command identifier associated with the button.

lParam

Must be zero.

Return value

Returns the zero-based index for the button or -1 if the specified command identifier is invalid.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h