Help Center

CToolbar.SetBitmapSizemethod

Sets the size of the bitmapped images to be added to a toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION SetBitmapSize (BYVAL hToolbar AS HWND, BYVAL dxBitmap AS SHORT, BYVAL dyBitmap AS SHORT) AS BOOLEAN

Parameters

NameDescription
hToolbarHandle to the toolbar control.
dxBitmapThe width, in pixels, of the bitmapped images.
dyBitmapThe height, in pixels, of the bitmapped images.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Sets the size of the bitmapped images to be added to a toolbar.

Remarks

The size can be set only before adding any bitmaps to the toolbar. If an application does not explicitly set the bitmap size, the size defaults to 16 by 15 pixels.

Reference

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