Help Center

CToolbar.IsButtonEnabledmethod

Determines whether the specified button in a toolbar is enabled.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION IsButtonEnabled (BYVAL hToolbar AS HWND, BYVAL idButton AS LONG) AS LONG

Parameters

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

Return value

Returns nonzero if the button is enabled, or zero otherwise.

Description

Determines whether the specified button in a toolbar is enabled.

Reference

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