Spread 8.0 Documentation
SSGetCellFromPixel Function
Support Options
DLL Reference > DLL Functions > SSGetCellFromPixel Function

Glossary Item Box

SSGetCellFromPixel Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Determines the column and row of a cell by using window coordinates. This function is useful when the application is intercepting mouse messages.

Syntax

C

BOOL SSGetCellFromPixel(HWND hWnd, LPSS_COORD lpCol, LPSS_COORD lpRow, int MouseX, int MouseY);

C++

BOOL TSpread::GetCellFromPixel(LPSS_COORD lpCol, LPSS_COORD lpRow, int MouseX, int MouseY);

Parameters

The following parameters are available:

Parameter Description
hWnd Window handle of the fpSpread control
lpCol Pointer to variable that receives column number of cell
Returns –1 for coordinates in gray area.
lpRow Pointer to variable that receives row number of cell
Returns –1 for coordinates in gray area.
MouseX x-coordinate relative to upper-left corner of control
MouseY y-coordinate relative to upper-left corner of control

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.

Return Type

Nonzero if successful.

See Also

SSSetSheet function

ActiveX Correspondence

GetCellFromScreenCoord method

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