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

Glossary Item Box

SSSetEnhancedScrollBarColors Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Sets the background colors for the scroll bars

Syntax

C

BOOL SSSetEnhancedScrollBarColors(HWND hWnd, COLORREF clrTrackColor, COLORREF clrArrowColor, COLORREF clrUpperNormalStartColor, COLORREF clrUpperNormalEndColor, COLORREF clrLowerNormalStartColor, COLORREF clrLowerNormalEndColor, COLORREF clrUpperPushedStartColor, COLORREF clrUpperPushedEndColor, COLORREF clrLowerPushedStartColor, COLORREF clrLowerPushedEndColor, COLORREF clrUpperHoverStartColor, COLORREF clrUpperHoverEndColor, COLORREF clrLowerHoverStartColor, COLORREF clrLowerHoverEndColor, COLORREF clrHoverButtonBorderColor, COLORREF clrButtonBorderColor);

C++

BOOL TSpread::SetEnhancedScrollBarColors(COLORREF clrTrackColor, COLORREF clrArrowColor, COLORREF clrUpperNormalStartColor, COLORREF clrUpperNormalEndColor COLORREF clrLowerNormalStart, COLORREF clrLowerNormalEndColor, COLORREF clrUpperPushedStartColor, COLORREF clrUpperPushedEndColor, COLORREF clrLowerPushedStartColor, COLORREF clrLowerPushedEndColor, COLORREF clrUpperHoverStartColor, COLORREF clrUpperHoverEndColor, COLORREF clrLowerHoverStartColor, COLORREF clrLowerHoverEndColor, COLORREF clrHoverButtonBorderColor, COLORREF clrButtonBorderColor);

Parameters

The following parameters are available:

Parameter Description
hWnd Window handle of the fpSpread control
clrTrackColor Background color of the track area of the scroll bar
clrArrowColor Background color of the up or down arrows
clrUpperNormalStartColor Beginning gradient color in the top/left half of the scroll bar buttons
clrUpperNormalEndColor Ending gradient color in the top/left half of the scroll bar buttons
clrLowerNormalStart Beginning gradient color in the lower/right half of the scroll bar buttons
clrLowerNormalEndColor Ending gradient color in the lower/right half of the scroll bar buttons
clrUpperPushedStartColor Beginning gradient color in the top/left half of the scroll bar button when pressed
clrUpperPushedEndColor Ending gradient color in the top/left half of the scroll bar button when pressed
clrLowerPushedStartColor Beginning gradient color in the lower/right half of the scroll bar button when pressed
clrLowerPushedEndColor Ending gradient color in the lower/right half of the scroll bar button when pressed
clrUpperHoverStartColor Beginning gradient color in the top/left half of the scroll bar button when the mouse is over the button
clrUpperHoverEndColor Ending gradient color in the top/left half of the scroll bar button when the mouse is over the button
clrLowerHoverStartColor Beginning gradient color in the lower/right half of the scroll bar button when the mouse is over the button
clrLowerHoverEndColor Ending gradient color in the lower/right half of the scroll bar button when the mouse is over the button
clrHoverButtonBorderColor Background color of the button border when the mouse is over the button
clrButtonBorderColor Background color of the button border

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 hover color is the color under the mouse pointer. The arrow color is the color of the scroll bar arrows. The upper color is the top/left half of the scroll bar buttons. The lower color is the lower/right half of the scroll bar buttons. Start refers to the beginning color in a gradient and end refers to the lower or ending color in the gradient. The start/beginning gradient applies from the top of the button to the middle and the end/lower gradient applies from the middle to the bottom of the button.

Normal is the regular state of the button and pushed is when the button has been pressed.

Return Value

TRUE if the function completes successfully; FALSE otherwise.

See Also

Customizing the Appearance

SSSetAppearanceStyle, SSSetSheet, SSSetEnhancedColumnHeaderColors functions

ActiveX Correspondence

SetEnhancedScrollBarColors method

Copyright © GrapeCity, inc. All rights reserved.