TB_SETBUTTONWIDTH

This message sets the minimum and maximum button widths in the toolbar control.

At a Glance

Header file: Commctrl.h
Windows CE versions: 2.0 and later

Syntax

  1. TB_SETBUTTONWIDTH wParam = 0;
    lParam = (LPARAM)(DWORD) MAKELONG(cxMin,cxMax);

Parameters

cxMin

Minimum button width, in pixels. Toolbar buttons are never narrower than this value.

cxMax

Maximum button width, in pixels. If button text is too wide, the control displays it with ellipsis points.

Return Values

Nonzero indicates success. Zero indicates otherwise.