<< Return to Main Index

< Return to Class Index

CGXGridCore::OnMouseMoveOver

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.

Return Value

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.

Remarks

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.

See Also

CGXGridCore::ShowContextCursor CGXGridCore::GetControl CGXControl::MouseMoveOver CGXControl::IsKindOf

CGXGridCore

Class Overview | Class Members