Share via


TB_COMMANDTOINDEX (Windows Embedded CE 6.0)

1/6/2010

This message retrieves the zero-based index for the button associated with the specified command identifier.

Syntax

TB_COMMANDTOINDEX wParam = (WPARAM) idButton; 
    lParam = 0; 

Parameters

  • idButton
    Command identifier associated with the button.
  • lParam
    Not used.

Return Value

The zero-based index for the button indicates success. The -1 value indicates the specified command identifier is invalid.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Toolbar Controls Messages