CPager.SetButtonSizemethod
Sets the current button size for the pager control.
Syntax
FUNCTION SetButtonSize (BYVAL hPager AS HWND, BYVAL iSize AS LONG) AS LONG
Parameters
| Name | Description | |
|---|---|---|
hPager | Handle to the pager control. | |
iSize | The new button size, in pixels. |
Return value
Returns the previous button size, in pixels.
Description
Sets the current button size for the pager control.
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.
Example
DIM nSize AS LONG = CPager.SetButtonSize(hPager, 25)
Reference
- Include file
CPager.inc - Defined in AfxNova/CPager.inc:179
- Documented in Windows/WIndows Controls/CPager Class.md
- Topic: CPager Class