SSGetSelColor, SSSetSelColor Functions
Applies To
fpSpread DLL control
Description
Set or return the background and text colors of the selected cells.
Syntax
void SSGetSelColor(HWND hWnd, LPCOLORREF lpclrBack, LPCOLORREF lpclrFore);
void SSSetSelColor(HWND hWnd, COLORREF clrBack, COLORREF clrFore);
void TSpread::GetSelColor(LPCOLORREF lpclrBack, LPCOLORREF lpclrFore);
void TSpread::SetSelColor(COLORREF clrBack, COLORREF clrFore);
Parameters
The SSGetSelColor function has the following parameters:
Parameter | Description |
hWnd | Window handle of the fpSpread control |
lpclrBack | Returns the background color of the selected cells |
lpclrFore | Returns the text color of the selected cells |
The SSSetSelColor function has the following parameters:
Parameter | Description |
hWnd | Window handle of the fpSpread control |
clrBack | Sets the background color of the selected cells |
clrFore | Sets the text color of the selected cells |
Remarks
This function is applied to the entire workbook, including all sheets in the control.
The default value for the background color is SPREAD_COLOR_NONE. When the clrBack parameter is set to this value, the inverse of the background color set by the SSSetColor or SSSetColorRange function's Background parameter is used for the selected cells.
The default value for the text color is SPREAD_COLOR_NONE. When the clrFore parameter is set to this value, the inverse of the background color set by the SSSetColor or SSSetColorRange function's Foreground parameter is used for the selected cells.
See Also
Specifying the Colors of Selected Cells
SSGetColor, SSSetColor, SSSetColorRange functions
ActiveX Correspondence
SelBackColor, SelForeColor properties