Spread 8.0 Documentation
SSGetScrollBarSize, SSSetScrollBarSize Functions
Support Options
DLL Reference > DLL Functions > SSGetScrollBarSize, SSSetScrollBarSize Functions

Glossary Item Box

SSGetScrollBarSize, SSSetScrollBarSize Functions


See Also    ActiveX    Example

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

C

void SSGetScrollBarSize(HWND hWnd, LPSHORT lpdVScrollWidth, LPSHORT lpdHScrollHeight);

void SSSetScrollBarSize(HWND hWnd, short dVScrollWidth, short dHScrollHeight);

C++

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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.