Help Center

CToolbar.SetButtonSizemethod

Sets the size of buttons on a toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION SetButtonSize (BYVAL hToolbar AS HWND, BYVAL dxButton AS SHORT, BYVAL dyButton AS SHORT) AS BOOLEAN

Parameters

NameDescription
hToolbarHandle to the toolbar control.
dxButtonThe width, in pixels, of the buttons.
dyButtonThe height, in pixels, of the buttons.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Sets the size of buttons on a toolbar.

Reference

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