SpvGetScrollIncV, SpvSetScrollIncV Functions
Applies To
fpSpreadPreview DLL control
Description
Set or return the vertical distance the control scrolls when the user scrolls through the displayed pages.
Syntax
int SpvGetScrollIncV(HWND hWnd, long FAR *lpValue);
int SpvSetScrollIncV(HWND hWnd, long value);
long TPreview::GetScrollIncV(void);
int TPreview::SetScrollIncV(long value);
Parameters
The SpvGetScrollIncV function has the following parameters:
Parameter | Description |
---|---|
hWnd | Window handle of the fpSpreadPreview control |
lpValue | Pointer to variable that receives the vertical distance the control scrolls |
The SpvSetScrollIncV function has the following parameters:
Parameter | Description |
hWnd | Window handle of the fpSpreadPreview control |
value | The vertical distance the control scrolls |
Remarks
The default value for the vertical increment is 360 twips. The measurement unit for the increment is twips.
The SpvSetScrollBarV function's value parameter must be set to SPV_SCROLLBAR_SHOW or SPV_SCROLLBAR_AUTO for the SpvSetScrollIncV function to have an effect.
To specify the horizontal distance the control scrolls, call the SpvSetScrollIncH function.
Return Value
SpvGetScrollIncV: For C users, 1 if the function completes successfully; 0 otherwise. For C++ users, the setting for the function.
SpvSetScrollIncV: 1 if the function completes successfully; 0 otherwise.
See Also
SpvSetScrollBarH, SpvSetScrollBarV, SpvSetScrollIncH functions
ActiveX Correspondence
ScrollIncV property