SSGetSel, SSSetSel Functions
Applies To
fpSpread DLL control
Description
Set or return the starting position and length of text selected within the active cell when the cell is in edit mode.
Syntax
BOOL SSGetSel(HWND hWnd, LPINT SelStart, LPINT SelEnd);
BOOL SSSetSel(HWND hWnd, int SelStart, int SelEnd);
BOOL TSpread::GetSel(LPINT SelStart, LPINT SelEnd);
BOOL TSpread::SetSel(int SelStart, int SelEnd);
Parameters
The SSGetSel function has the following parameters:
Parameter | Description |
---|---|
hWnd | Window handle of the fpSpread control |
SelStart | Start of selection |
SelEnd | End of selection |
The SSSetSel function has the following parameters:
Parameter | Description |
---|---|
hWnd | Window handle of the fpSpread control |
SelStart | Start of selection |
SelEnd | End of selection |
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.
These functions work only when the fpSpread control is in edit mode.
For the SSGetSel function, the values returned are the range of characters selected in the edit field.
Return Value
TRUE if the function completes successfully; FALSE otherwise.
See Also
SSGetEditMode, SSSetEditMode, SSSetSheet functions
ActiveX Correspondence
SelLength, SelStart properties