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

Glossary Item Box

SSSetEnhancedColumnHeaderColors Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Sets the background colors for the column headers.

Syntax

C

BOOL SSSetEnhancedColumnHeaderColors(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::SetEnhancedColumnHeaderColors(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 column header color of the upper half of the header when the mouse pointer is over the header
clrSelectedHoverLowerColor Selected, active background column 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 column header
clrSelectedLowerColor Selected, lower background color of the active column header
clrHoverUpperColor Upper, background color of the column header when the mouse pointer is over the header
clrHoverLowerColor Lower, background color of the column 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 column header when the column is selected
clrBorderColor Border color of the column 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 column or the color of the column header where the active cell is located.

The hover color is the color under the mouse pointer (not the selected or active column). 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 column header and the lower color is the lower half of the column header.

Return Value

TRUE if the function completes successfully; FALSE otherwise.

See Also

Customizing the Appearance

SSSetAppearanceStyle, SSSetSheet, SSSetEnhancedRowHeaderColors functions

ActiveX Correspondence

SetEnhancedColumnHeaderColors method

Copyright © GrapeCity, inc. All rights reserved.