SSGetUseVisualStyles, SSSetUseVisualStyles Functions
Applies To
fpSpread DLL control
Description
Set or return the visual style setting for button cells, check box cells, combo cells, and spin buttons.
Syntax
C
WORD SSGetUseVisualStyles(HWND hWnd);
WORD SSSetUseVisualStyles(HWND hWnd, WORD nStyle);
C++
WORD TSpread::GetUseVisualStyles();
WORD TSpread::SetUseVisualStyles(WORD nStyle);
Parameters
The SSGetUseVisualStyles function has the following parameters:
Parameter | Description |
hWnd | Window handle of the fpSpread control |
The SSSetUseVisualStyles function has the following parameters:
Parameter | Description | |
hWnd | Window handle of the fpSpread control | |
nStyle | Option for the visual style Use one of the following values: |
|
Constant | Description | |
0 | SS_USEVISUALSTYLES_INHERIT | Inherit visual style setting from SSSetAppearanceStyle (Default) |
1 | SS_USEVISUALSTYLES_YES | Use enhanced style for button, check box, and combo cells, and spin buttons |
2 | SS_USEVISUALSTYLES_NO | Use classic style for button, check box, and combo cells, and spin buttons |
Remarks
This function can be used to set the control to classic while setting button cells, check box cells, combo cells, and spin buttons to enhanced (or enhanced control with classic cells and spin buttons).
Return Value
Value of visual style.
See Also
SSGetHighlightStyle, SSSetHighlightStyle functions
ActiveX Correspondence
UseVisualStyles property