Help Center

CToolbar.HideButtonmethod

Hides or shows the specified button in a toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION HideButton (BYVAL hToolbar AS HWND, BYVAL idButton AS LONG, BYVAL fShow AS SHORT) AS BOOLEAN
FUNCTION HideButton (BYVAL hToolbar AS HWND, BYVAL idButton AS LONG) AS BOOLEAN
Also documented as UnhideButton — one description covers them all.

Parameters

NameDescription
hToolbarHandle to the toolbar control.
idButtonCommand identifier of the button to hide or show.
fShowTRUE to hidden the button or FALSE to show it.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Hides or shows the specified button in a toolbar.

Reference

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