Skip to content

Latest commit

 

History

History
60 lines (35 loc) · 1.28 KB

tb-commandtoindex.md

File metadata and controls

60 lines (35 loc) · 1.28 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
TB_COMMANDTOINDEX message (Commctrl.h)
Retrieves the zero-based index for the button associated with the specified command identifier.
vs|controls|~\controls\toolbar\messages\tb_commandtoindex.htm
TB_COMMANDTOINDEX message Windows Controls
apiref
TB_COMMANDTOINDEX
Commctrl.h
HeaderDef
reference
05/31/2018

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