Help Center

CToolbar.EnableButtonmethod

Enables the specified button in a toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION EnableButton (BYVAL hToolbar AS HWND, BYVAL idButton AS LONG) AS BOOLEAN

Parameters

NameDescription
hToolbarHandle to the toolbar control.
idButtonCommand identifier of the button to enable.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Enables the specified button in a toolbar.

Remarks

When a button has been enabled, it can be pressed and checked.

Reference

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