CToolbar.SetBitmapSizemethod
Sets the size of the bitmapped images to be added to a toolbar.
Syntax
FUNCTION SetBitmapSize (BYVAL hToolbar AS HWND, BYVAL dxBitmap AS SHORT, BYVAL dyBitmap AS SHORT) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
hToolbar | Handle to the toolbar control. | |
dxBitmap | The width, in pixels, of the bitmapped images. | |
dyBitmap | The 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