TabCtrl_SetItemSize macro

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

Syntax


DWORD TabCtrl_SetItemSize(
   HWND hwnd,
   int  cx,
   int  cy
);

Parameters

hwnd

Type: HWND

Handle to the tab control.

cx

Type: int

New width, in pixels.

cy

Type: int

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.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

 

 

Show: