Help Center

CToolbar.SetListGapmethod

Sets the distance between the toolbar buttons on a specific toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

SUB SetListGap (BYVAL hToolbar AS HWND, BYVAL gap AS DWORD)

Parameters

NameDescription
hToolbarHandle to the toolbar control.
gapThe gap, in pixels, between buttons on the toolbar.

Description

Sets the distance between the toolbar buttons on a specific toolbar.

Remarks

The gap between buttons only applies to the toolbar control window that receives this message. Receipt of this message triggers a repaint of the toolbar, if the toolbar is currently visible.

Reference

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