SSGetScrollBarSize, SSSetScrollBarSize Functions
Applies To
fpSpread DLL control
Description
Sets or returns the width of the vertical scroll bar and the height of the horizontal scroll bar.
Syntax
void SSGetScrollBarSize(HWND hWnd, LPSHORT lpdVScrollWidth, LPSHORT lpdHScrollHeight);
void SSSetScrollBarSize(HWND hWnd, short dVScrollWidth, short dHScrollHeight);
void TSpread::GetScrollBarSize(LPSHORT lpdVScrollWidth, LPSHORT lpdHScrollHeight);
void TSpread::SetScrollBarSize(short dVScrollWidth, short dHScrollHeight);
Parameters
The SSGetScrollBarSize function has the following parameters:
Parameter | Description |
hWnd | Window handle of the fpSpread control |
lpdVScrollWidth | Width of the vertical scroll bar in pixels |
lpdHScrollHeight | Height of the horizontal scroll bar in pixels |
The SSSetScrollBarSize function has the following parameters:
Parameter | Description |
---|---|
hWnd | Window handle of the fpSpread control |
dVScrollWidth | Width of the vertical scroll bar in pixels |
dHScrollHeight | Height of the horizontal scroll bar in pixels |
Remarks
This function is applied to the entire workbook, including all sheets in the control.
By default, the scroll bars' height and width is determined by the default operating system settings.
Return Value
SSGetScrollBarSize: Width of the vertical scroll bar and height of the horizontal scroll bar
SSSetScrollBarSize: None
See Also
Resizing a Cell to Fit the Widest Data
SSGetScrollBarColor, SSSetScrollBarColor functions
ActiveX Correspondence
ScrollBarHeight, ScrollBarWidth properties