Help Center

CToolbar.DisableButtonmethod

Disables the specified button in a toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

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

Parameters

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

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Disables the specified button in a toolbar.

Reference

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