Spread 8.0 Documentation
SpvGetScrollIncH, SpvSetScrollIncH Functions
Support Options
DLL Reference > DLL Functions > SpvGetScrollIncH, SpvSetScrollIncH Functions

Glossary Item Box

SpvGetScrollIncH, SpvSetScrollIncH Functions


See Also    ActiveX

Applies To

fpSpreadPreview DLL control

Description

Set or return the horizontal distance the control scrolls when the user scrolls through the displayed pages.

Syntax

C

int SpvGetScrollIncH(HWND hWnd, long FAR *lpValue);

int SpvSetScrollIncH(HWND hWnd, long value);

C++

long TPreview::GetScrollIncH(void);

int TPreview::SetScrollIncH(long value);

Parameters

The SpvGetScrollIncH function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpreadPreview control
lpValue Pointer to variable that receives the horizontal distance the control scrolls

The SpvSetScrollIncH function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpreadPreview control
value The horizontal distance the control scrolls

Remarks

The default value for the horizontal increment is 360 twips. The measurement unit for the increment is twips.

The SpvSetScrollBarH function's value parameter must be set to SPV_SCROLLBAR_SHOW or SPV_SCROLLBAR_AUTO for the SpvSetScrollIncH function to have an effect.

To specify the vertical distance the control scrolls, call the SpvSetScrollIncV function.

Return Value

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

See Also

SpvSetScrollBarH, SpvSetScrollBarV, SpvSetScrollIncV functions

ActiveX Correspondence

ScrollIncH property

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