Help Center

CToolbar.SetStatemethod

Sets the state for the specified button in a toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION SetState (BYVAL hToolbar AS HWND, BYVAL idButton AS LONG, BYVAL fState AS SHORT) AS BOOLEAN

Parameters

NameDescription
hToolbarHandle to the toolbar control.
idButtonCommand identifier of the button.
fStateA is a combination of values listed in Toolbar Button States.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Sets the state for the specified button in a toolbar.

Reference

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