Partager via


TB_COMMANDTOINDEX

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/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
Windows Mobile Windows Mobile Version 5.0 and later