Spread 8.0 Documentation
SpvGetPageCurrent, SpvSetPageCurrent Functions
Support Options
DLL Reference > DLL Functions > SpvGetPageCurrent, SpvSetPageCurrent Functions

Glossary Item Box

SpvGetPageCurrent, SpvSetPageCurrent Functions


See Also    ActiveX

Applies To

fpSpreadPreview DLL control

Description

Set or return the page displayed in the control.

Syntax

C

int SpvGetPageCurrent(HWND hWnd, long FAR *lpValue);

int SpvSetPageCurrent(HWND hWnd, long value);

C++

long TPreview::GetPageCurrent(void);

int TPreview::SetPageCurrent(long value);

Parameters

The SpvGetPageCurrent function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpreadPreview control
lpValue Pointer to variable that receives the current page displayed

The SpvSetPageCurrent function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpreadPreview control
value Page to display in the control

Remarks

When the displayed page changes from one page to another, the control sends the SPVN_PAGECHANGE message.

Return Value

SpvGetPageCurrent: For C users, 1 if the function completes successfully; 0 otherwise. For C++ users, the setting for the function.
SpvSetPageCurrent: 1 if the function completes successfully; 0 otherwise.

See Also

SPVN_PAGECHANGE message

ActiveX Correspondence

PageCurrent property

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