Compartilhar via


TB_SETBITMAPSIZE

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This message sets the size of the bitmapped images to be added to a toolbar.

Syntax

TB_SETBITMAPSIZE wParam = 0;
    lParam = (LPARAM)MAKELONG(dxBitmap,dyBitmap);

Parameters

  • wParam
    Not used.
  • dxBitmap
    Specifies the width, in pixels, of the bitmapped images.
  • dyBitmap
    Specifies the height, in pixels, of the bitmapped images.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

The default image width is 16 pixels and the default image height is 15 pixels. If the size of the bitmap is not the default or if you have multiple images in a bitmap, you must call TB_SETBITMAPSIZE to change the default size settings. Otherwise, the bitmap or image is truncated or is not displayed.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Toolbar Controls Messages