Pager_SetButtonSize macro

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 hwndPager,
   int  iButtonSize
);

Parameters

hwndPager

Type: HWND

Handle to the pager control.

iButtonSize

Type: int

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

Return value

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

See also

Pager_GetButtonSize

 

 

Show: