Spread 8.0 Documentation
SSSetEnhancedRowHeaderColors Function
Support Options
DLL Reference > DLL Functions > SSSetEnhancedRowHeaderColors Function

Glossary Item Box

SSSetEnhancedRowHeaderColors Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Sets the background colors for the row headers.

Syntax

C

BOOL SSSetEnhancedRowHeaderColors(HWND hWnd, COLORREF clrSelectedHoverUpperColor, COLORREF clrSelectedHoverLowerColor, COLORREF clrSelectedUpperColor, COLORREF clrSelectedLowerColor, COLORREF clrHoverUpperColor, COLORREF clrHoverLowerColor, COLORREF clrUpperColor, COLORREF clrLowerColor, COLORREF clrSelectedBorderColor, COLORREF clrBorderColor);

C++

BOOL TSpread::SetEnhancedRowHeaderColors(COLORREF clrSelectedHoverUpperColor, COLORREF clrSelectedHoverLowerColor, COLORREF clrSelectedUpperColor, COLORREF clrSelectedLowerColor COLORREF clrHoverUpperColor, COLORREF clrHoverLowerColor, COLORREF clrUpperColor, COLORREF clrLowerColor, COLORREF clrSelectedBorderColor, COLORREF clrBorderColor);

Parameters

The following parameters are available:

Parameter Description
hWnd Window handle of the fpSpread control
clrSelectedHoverUpperColor Selected, active background row header color of the upper half of the header when the mouse pointer is over the header
clrSelectedHoverLowerColor Selected, active background row header color of the lower half of the header when the mouse pointer is over the header
clrSelectedUpperColor Selected, upper background color of the active row header
clrSelectedLowerColor Selected, lower background color of the active row header
clrHoverUpperColor Upper, background color of the row header when the mouse pointer is over the header
clrHoverLowerColor Lower, background color of the row header when the mouse pointer is over the header
clrUpperColor Background color of the upper half of the header
clrLowerColor Background color of the lower half of the header
clrSelectedBorderColor Border color of the row header when the row is selected
clrBorderColor Border color of the row header

Remarks

This function is applied to the current sheet unless you call the SSSetSheet function to specify the sheet with which you want to work.

The selected color is the color of the selected row or the color of the row header where the active cell is located.

The hover color is the color under the mouse pointer (not the selected or active row). If you move the mouse pointer over a header but, do not click on it, this is the hover color. The upper color is the upper half of the row header and the lower color is the lower half of the row header.

Return Value

TRUE if the function completes successfully; FALSE otherwise.

See Also

Customizing the Appearance

SSSetAppearanceStyle, SSSetSheet functions

ActiveX Correspondence

SetEnhancedRowHeaderColors method

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.