virtual BOOL OnMouseMoveOver((ROWCOL nRow, ROWCOL nCol, UINT nFlags, CPoint pt);?
nRow
Specifies the row id.
nCol
Specifies the column id.
nFlags
MK_SHIFT Set if the SHIFT key is down.
pt
Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window.
FALSE if the grid shall show the default cursor for the given point; TRUE if you don’t want the grid to display the default cursor.
Called from CGXControl::OnMouseMoveOver when the user moves the mouse over the grid.
You may override this method and change the cursor on the fly by calling ShowContextCursor and then returning TRUE.
You can either override OnMouseMoveOver for all controls or (C++) subclass a specific control and override the control’s MouseMoveOver method.
OnMouseMoveOver will not be called while the user is selecting cells, tracking row or column sizes or dragging cells.
You can use CGXControl::IsKindOf to determine the control’s class.
Note
You have to set CGXGridCore::m_bDisableMouseMoveOver to FALSE if you want the grid to call CGXControl::MouseMoveOver when the user moves the current cell over the grid. The default setting is TRUE. This means the grid will not call MouseMoveOver.
CGXGridCore::ShowContextCursor CGXGridCore::GetControl CGXControl::MouseMoveOver CGXControl::IsKindOf
Class Overview | Class Members