SSGetGrayAreaColor, SSSetGrayAreaColor Functions
Applies To
fpSpread DLL control
Description
Set or return the gray area background color of the control.
Syntax
void SSGetGrayAreaColor(HWND hWnd, LPCOLORREF lpBackground, LPCOLORREF lpForeground);
void SSSetGrayAreaColor(HWND hWnd, COLORREF Background, COLORREF Foreground);
void TSpread::GetGrayAreaColor(LPCOLORREF lpBackground, LPCOLORREF lpForeground);
void TSpread::SetGrayAreaColor(COLORREF Background, COLORREF Foreground);
Parameters
The SSGetGrayAreaColor function has the following parameters:
Parameter | Description |
---|---|
hWnd | Window handle of the fpSpread control |
lpBackground | Pointer to variable that receives background color of gray area |
lpForeground | Pointer to variable that receives foreground color of gray area |
The SSSetGrayAreaColor function has the following parameters:
Parameter | Description |
hWnd | Window handle of the fpSpread control |
Background | Background color of gray area (Value can be SPREAD_COLOR_NONE, which specifies to use the default gray area background color.) |
Foreground | Foreground color of gray area (Value can be SPREAD_COLOR_NONE, which specifies to use the default gray area foreground color.) |
Remarks
When the maximum number of rows or columns are displayed, the remainder of the fpSpread control window is displayed on the screen as a gray area. That is, the gray area is the area between the last row and column in the sheet and the border of the fpSpread control or the scroll bars, if they are displayed.
Currently, no foreground color is displayed in the gray area. Therefore, setting the Foreground parameter for the SSSetGrayAreaColor function has no effect.
See Also
ActiveX Correspondence
GrayAreaBackColor property