CGXGridCore::OnExtHitTest
virtual int OnExtHitTest(ROWCOL ncRow, ROWCOL ncCol, CPoint& ptTest, CRect& rect);
ncRow
Specifies the row id for the row that is under the point ptTest.
ncCol
Specifies the column id for the column that is under the point ptTest.
ptTest
Window coordinate.
rect
Contains the rectangle for the cell (nRow, nCol).
Return Value
Integer value specifying the type of information displayed at the window coordinate:
Hit-Code | Meaning |
GX_HORZLINE | Specifies the grid line of a row header. |
GX_VERTLINE | Specifies the grid line of a column header. |
GX_HEADERHIT | Specifies the interior rectangle of a row or column header. |
GX_CELLHIT | Specifies the interior rectangle of a cell. |
GX_SELEDGEHIT | Specifies that cursor is over the edge of a selection. This Hit-Test value will only be generated if m_bHitTestSelEdge is TRUE. |
GX_NOHIT | No information is displayed at the point. |
Remarks
OnExtHitTest will be called from HitTest when no standard hit test area could be determined.
Override this method if you want to add custom hit-testing.
See Also
CGXGridCore::m_bHitTestSelEdgeCGXGridCore::HitTest