CellFromPoint
To find a cell from a point inside the StyleGrid control.
CellFromPoint(x as Integer, y as Integer,
ByRef CellX as Integer, ByRef CellY as Integer)
x, y
The point used to find a cell.
CellX, CellY
The corresponding cell positions are returned into those parameters.
Note
CellX returns
-1 if in Horizontal scrollbar
-2 if in Vertical scrollbar
CellY returns
0 if in Header.