Pager_SetButtonSize macro (commctrl.h)

Sets the current button size for the pager control. You can use this macro or send the PGM_SETBUTTONSIZE message explicitly.

Syntax

int Pager_SetButtonSize(
   HWND hwnd,
   int  iSize
);

Parameters

hwnd

Type: HWND

Handle to the pager control.

iSize

Type: int

Value of type int that contains the new button size, in pixels.

Return value

Type: int

Returns an int value that contains the previous button size, in pixels.

Remarks

If the pager control has the PGS_HORZ style, the button size determines the width of the pager buttons. If the pager control has the PGS_VERT style, the button size determines the height of the pager buttons. By default, the pager control sets its button size to three-fourths of the width of the scroll bar.

Requirements

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

See also

Pager_GetButtonSize