<< Return to Main Index

< Return to Class Index

CGXGridCore::ShowContextCursor

virtual void ShowContextCursor(CPoint& point);?

virtual void ShowContextCursor(UINT idcPrimary, LPCTSTR idcSecondary);?

point

Contains the x- and y-coordinates of the current mouse position.

idcPrimary

Resource id for the primary cursor.

idcSecondary

Resource id for the secondary cursor (will be used if primary cursor is not found).

Remarks

This advanced method is called in order to display the mouse cursor depending on the current mouse position and internal states.

You can override this method if you need to display another cursor. You should take a look at the base-class version before you start overriding this method.

The first version of this method will compute the context for the given point and then call the second version with the approriate cursor ids. If SetGridCursor has been called, it will simply pass the cursor id specified with SetGridCursor and not compute the context.

If you want to change the cursor on the fly while the user is moving the mouse over cells, you might override OnMouseMoveOver, call ShowContextCursor(idcPrimary, idcSecondary) and then return TRUE.

See Also

CGXGridCore::SetGridCursor CGXGridCore::OnMouseMoveOver

CGXGridCore

Class Overview | Class Members