Help Center

CToolbar.DeleteButtonmethod

Deletes a button from the toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION DeleteButton (BYVAL hToolbar AS HWND, BYVAL nButton AS LONG) AS BOOLEAN

Parameters

NameDescription
hToolbarHandle to the toolbar control.
nButtonZero-based index of the button to delete.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Deletes a button from the toolbar.

Reference

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