SSGetScrollBarColor, SSSetScrollBarColor Functions
Applies To
fpSpread DLL control
Description
Set or return the colors of the horizontal and vertical scroll bars.
Syntax
void SSGetScrollBarColor(HWND hWnd, LPCOLORREF lpVScrollBarColor, LPCOLORREF lpHScrollBarColor);
void SSSetScrollBarColor(HWND hWnd, COLORREF VScrollBarColor, COLORREF HScrollBarColor);
void TSpread::GetScrollBarColor(LPCOLORREF lpVScrollBarColor, LPCOLORREF lpHScrollBarColor);
void TSpread::SetScrollBarColor(COLORREF VScrollBarColor, COLORREF HScrollBarColor);
Parameters
The SSGetScrollBarColor function has the following parameters:
Parameter | Description |
hWnd | Window handle of the fpSpread control |
lpVScrollBarColor | Pointer to variable that receives color of vertical scroll bar (Returns SPREAD_COLOR_NONE if default color is being used.) |
lpHScrollBarColor | Pointer to variable that receives color of horizontal scroll bar (Returns SPREAD_COLOR_NONE if default color is being used.) |
The SSSetScrollBarColor function has the following parameters:
Parameter | Description |
---|---|
hWnd | Window handle of the fpSpread control |
VScrollBarColor | Color of vertical scroll bar (Value can be SPREAD_COLOR_NONE, which specifies vertical scroll bar uses default color.) |
HScrollBarColor | Color of horizontal scroll bar (Value can be SPREAD_COLOR_NONE, which specifies horizontal scroll bar uses default color.) |
Remarks
This function is applied to the entire workbook, including all sheets in the control.
If the VScrollBarColor or HScrollBarColor parameters for the SSSetScrollBarColor function are set to SPREAD_COLOR_NONE, the scroll bar displays the default color.
See Also
Setting Background and Text Colors for Locked Cells
SSSetColor, SSSetColorRange, SSSetLock functions
ActiveX Correspondence
ScrollBarHColor, ScrollBarVColor properties