CGXChild::MouseMoveOver
virtual BOOL MouseMoveOver(ROWCOL nRow, ROWCOL nCol, UINT nFlags, CPoint point);
nRow
Specifies the row id.
nCol
Specifies the column id.
nFlags
-
Indicates whether various virtual keys are down. This parameter can be any combination of the following values:
- MK_CONTROL Set if the CTRL key is down.
- MK_RBUTTON Set if the left mouse button is down.
- MK_MBUTTON Set if the middle mouse button is down.
- MK_RBUTTON Set if the right mouse button is down.
MK_SHIFT Set if the SHIFT key is down.
point
Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window.
Return Value
FALSE if the grid should show the default cursor for the given point; TRUE if you don’t want the grid to display the default cursor.
Remarks
Called from CGXControl::MouseMoveOver when the user is moving the mouse over the cell.
You may override this method and change the cursor on the fly by calling ShowContextCursor and then returning TRUE.
OnMouseMoveOver will not be called while the user is selecting cells, tracking row or column sizes, or dragging cells. It is only called when the user is moving the mouse without havin pressed a mouse button.
See Also
CGXGridCore::ShowContextCursor CGXGridCore::OnMouseMoveOver CGXControl::MouseMoveOver CGXGridCore::m_bDisableMouseMoveOver