SpvGetScrollBarH, SpvSetScrollBarH Functions
Applies To
fpSpreadPreview DLL control
Description
Set or return whether and how the horizontal scroll bar is displayed.
Syntax
int SpvGetScrollBarH(HWND hWnd, short FAR *lpValue);
int SpvSetScrollBarH(HWND hWnd, short value);
short TPreview::GetScrollBarH(void);
int TPreview::SetScrollBarH(short value);
Parameters
The SpvGetScrollBarH function has the following parameters:
Parameter | Description |
---|---|
hWnd | Window handle of the fpSpreadPreview control |
lpValue | Pointer to variable that receives how the horizontal scroll bar is displayed |
The SpvSetScrollBarH function has the following parameters:
Parameter | Description | |
hWnd | Window handle of the fpSpreadPreview control | |
value | Style of the horizontal scroll bar Use one of the following values: |
|
Constant | Description | |
SPV_SCROLLBAR_SHOW | Displays horizontal scroll bar at all times | |
SPV_SCROLLBAR_AUTO | (Default) Displays horizontal scroll bar when the view exceeds the size of the client area | |
SPV_SCROLLBAR_HIDE | Does not display horizontal scroll bar |
Remarks
Use these functions to determine whether and how the horizontal scroll bar is displayed. Use the SpvSetScrollBarV function to determine whether and how the vertical scroll bar is displayed. To determine the distance the control scrolls horizontally and vertically, set the SpvSetScrollIncH and SpvSetScrollIncV functions.
Return Value
SpvGetScrollBarH: For C users, 1 if the function completes successfully; 0 otherwise. For C++ users, the setting for the function.
SpvSetScrollBarH: 1 if the function completes successfully; 0 otherwise.
See Also
SpvSetScrollBarV, SpvSetScrollIncH, SpvSetScrollIncV functions
ActiveX Correspondence
ScrollBarH property