SpvGetGrayAreaColor, SpvSetGrayAreaColor Functions
Applies To
fpSpreadPreview DLL control
Description
Set or return the color of the preview area of the control.
Syntax
int SpvGetGrayAreaColor(HWND hWnd, COLORREF FAR *lpValue);
int SpvSetGrayAreaColor(HWND hWnd, COLORREF value);
COLORREF TPreview::GetGrayAreaColor(void);
int TPreview::SetGrayAreaColor(COLORREF value);
Parameters
The SpvGetGrayAreaColor function has the following parameters:
Parameter | Description |
---|---|
hWnd | Window handle of the fpSpreadPreview control |
lpValue | Pointer to variable that receives background color of gray area |
The SpvSetGrayAreaColor function has the following parameters:
Parameter | Description |
---|---|
hWnd | Window handle of the fpSpreadPreview control |
value | Background color of gray area (Value can be SPREAD_COLOR_NONE, which specifies to use the default fpSpreadPreview control gray area background color.) |
Remarks
The default gray area color is 0x00808080 (dark gray).
The area around the pages in the fpSpreadPreview control window is displayed on the screen as a gray area. That is, the gray area is the area between the pages and the border of the fpSpreadPreview control or the scroll bars, if they are displayed. The size of the gray area is determined by the SpvSetGrayAreaMarginH, SpvSetGrayAreaMarginType, and SpvSetGrayAreaMarginV functions.
Return Value
SpvGetGrayAreaColor: For C users, 1 if the function completes successfully; 0 otherwise. For C++ users, the setting for the function.
SpvSetGrayAreaColor: 1 if the function completes successfully; 0 otherwise.
See Also
SpvGetGrayAreaMarginH, SpvGetGrayAreaMarginType, SpvGetGrayAreaMarginV, SpvSetGrayAreaMarginH, SpvSetGrayAreaMarginType, SpvSetGrayAreaMarginV functions
ActiveX Correspondence
GrayAreaColor property