TCM_SETITEMSIZE message

Sets the width and height of tabs in a fixed-width or owner-drawn tab control. You can send this message explicitly or by using the TabCtrl_SetItemSize macro.

Parameters

wParam

Must be zero.

lParam

The LOWORD is an INT value that specifies the new width, in pixels. The HIWORD is an INT value that specifies the new height, in pixels.

Return value

Returns the old width and height. The width is in the LOWORD of the return value, and the height is in the HIWORD.

Remarks

If the width is set to a value less than the image width set by ImageList_Create, the width of the tab is set to the lowest value that is greater than the image width.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h