Help Center

CToolbar.InsertSeparatormethod

Inserts a separator in a toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION InsertSeparator (BYVAL hToolbar AS HWND, BYVAL idxButton AS LONG, BYVAL nWidth AS LONG = 0) AS BOOLEAN

Parameters

NameDescription
hToolbarHandle to the toolbar control.
idxButtonZero-based index of a button. The message inserts the new separator to the left of this button.
nWidthWidth of the separator, in pixels

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Inserts a separator in a toolbar.

Reference

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