<< Return to Main Index

< Return to Class Index

CGXControl::MouseMoveOver

virtual BOOL MouseMoveOver(ROWCOL nRow, ROWCOL nCol, UINT nFlags, CPoint point);

nRow

Specifies the row id..

nCol

Specifies the column id..

nFlags

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 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 CGXGridCore while processing a WM_MOUSEMOVE message when the user is moving the mouse over the cell without having clicked the mouse button.

The base-class version checks if a CGXChild is at the given point. If yes, it calls the childs MouseMoveOver method.

You may override this method and change the cursor on the fly by calling ShowContextCursor and then returning TRUE.

You can either override CGXGridCore::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. It will only be called when the user has not pressed the mouse button.

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::OnMouseMoveOver CGXChild::MouseMoveOver CGXGridCore::m_bDisableMouseMoveOver

CGXControl

Class Overview | Class Members