virtual BOOL MouseMove(UINT nFlags, CPoint point, UINT nHitState);
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.
nHitState
GX_HITCURRENTCELL: User pressed mouse in current cell.
TRUE if the message has been processed; FALSE otherwise.
Called when the user is moving the mouse with a clicked mouse button.
The base-class version checks if a CGXChild has the focus (ChildWithFocus). If yes, it calls its MouseMove method.
A good example is the CGXSpinEdit control. When the user clicks on an arrow-button and holds down the mouse button, the focus is set to the arrow-button and the control will continuously receive MouseMove messages. CGXControl passes the MouseMove messages to the arrow-button. This results in increasing or decreasing the value. See the implementation of CGXSpinEdit and CGXArrowButton for details.
Class Overview | Class Members