Help Center

CToolbar.SetCmdIdmethod

Sets the command identifier of a toolbar button.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION SetCmdId (BYVAL hToolbar AS HWND, BYVAL index AS SHORT, BYVAL cmdid AS SHORT) AS BOOLEAN

Parameters

NameDescription
hToolbarHandle to the toolbar control.
indexZero-based index of the button whose command identifier is to be set.
cmdidCommand identifier.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Sets the command identifier of a toolbar button.

Reference

  • Include file CToolbar.inc
  • Defined in AfxNova/CToolbar.inc:1072
  • Documented in Windows/WIndows Controls/CToolbar Class.md
  • Topic: CToolbar Class