Spread 8.0 Documentation
SpvGetScrollBarV, SpvSetScrollBarV Functions
Support Options
DLL Reference > DLL Functions > SpvGetScrollBarV, SpvSetScrollBarV Functions

Glossary Item Box

SpvGetScrollBarV, SpvSetScrollBarV Functions


See Also    ActiveX

Applies To

fpSpreadPreview DLL control

Description

Set or return whether and how the vertical scroll bar is displayed.

Syntax

C

int SpvGetScrollBarV(HWND hWnd, short FAR *lpValue);

int SpvSetScrollBarV(HWND hWnd, short value);

C++

short TPreview::GetScrollBarV(void);

int TPreview::SetScrollBarV(short value);

Parameters

The SpvGetScrollBarV function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpreadPreview control
lpValue Pointer to variable that receives how the vertical scroll bar is displayed

The SpvSetScrollBarV function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpreadPreview control
value Styles of the vertical scroll bar
Use one of the following values:
Constant Description
SPV_SCROLLBAR_SHOW Displays vertical scroll bar at all times
SPV_SCROLLBAR_AUTO (Default) Displays vertical scroll bar when the view exceeds the size of the client area
SPV_SCROLLBAR_HIDE Does not display vertical scroll bar

Remarks

Use these functions to determine whether and how the vertical scroll bar is displayed. Use the SpvSetScrollBarH function to determine whether and how the horizontal scroll bar is displayed. To determine the distance the control scrolls horizontally and vertically, set the SpvSetScrollIncH and SpvSetScrollIncV functions.

Return Value

SpvGetScrollBarV: For C users, 1 if the function completes successfully; 0 otherwise. For C++ users, the setting for the function.
SpvSetScrollBarV: 1 if the function completes successfully; 0 otherwise.

See Also

SpvSetScrollBarH, SpvSetScrollIncH, SpvSetScrollIncV functions

ActiveX Correspondence

ScrollBarV property

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