<< Return to Main Index

< Return to Class Index

CGXControl::MButtonDown

virtual BOOL MButtonDown(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.

Return Value

TRUE if the message has been processed; FALSE otherwise.

Remarks

Called when the user has pressed the middle mouse button.

The base-class version checks if a CGXChild was hit. If yes, it sets focus to the child (FocusOnChild) and calls its MButtonDown method.

See Also

CGXControl::FocusOnChild

CGXControl

Class Overview | Class Members