Spread 8.0 Documentation
SSGetActiveCell, SSSetActiveCell Functions
Support Options
DLL Reference > DLL Functions > SSGetActiveCell, SSSetActiveCell Functions

Glossary Item Box

SSGetActiveCell, SSSetActiveCell Functions


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Set or return the row and column numbers of the active cell.

Syntax

C

BOOL SSGetActiveCell(HWND hWnd, LPSS_COORD Col, LPSS_COORD Row);

BOOL SSSetActiveCell(HWND hWnd, SS_COORD Col, SS_COORD Row);

C++

BOOL TSpread::GetActiveCell(LPSS_COORD Col, LPSS_COORD Row);

BOOL TSpread::SetActiveCell(SS_COORD Col, SS_COORD Row);

Parameters

The SSGetActiveCell function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpread control
Col Pointer to variable that receives column number of active cell
Row Pointer to variable that receives row number of active cell

The SSSetActiveCell function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpread control
Col Column number of active cell
Row Row number of active cell

Remarks

This function is applied to the current sheet setting unless you first call the SSSetSheet function to specify the sheet for which you are calling this function.

The active cell is the cell that receives user input. The active cell usually displays a focus rectangle or a blinking cursor.

Return Value

TRUE if the function completes successfully; FALSE otherwise.

See Also

Working with the Active Cell

SSSetSheet, SSShowActiveCell functions

ActiveX Correspondence

SSGetActiveCell: ActiveCol, ActiveRow, SelBlockCol, SelBlockCol2, SelBlockRow, SelBlockRow2 properties

SSSetActiveCell: ActiveCol, ActiveRow properties, SetActiveCell method

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