CGXControl::LButtonUp
virtual BOOL LButtonUp(UINT nFlags, CPoint point, UINT nHitState);
nFlags
-
Indicates whether various virtual keys are down. This parameter can be any combination of the following values:
- MK_CONTROL Set if the CTRL key is down.
- MK_LBUTTON Set if the left mouse button is down.
- MK_MBUTTON Set if the middle mouse button is down.
- MK_RBUTTON Set if the right mouse button is down.
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
specifies the state of the interaction. This parameter can be any combination of the following values:
- GX_HITSTART: Mouse button has been pressed
- GX_HITMOVE: Mouse cursor has been moved.
- GX_HITEND: Mouse button has been released.
- GX_SELECT: Cells will be selected.
- GX_HITINCELL: Mouse cursor is in the cell where the mouse button has been pressed.
- GX_HITLEAVE: Mouse cursor has left the cell where the mouse button has been pressed.
Return Value
TRUE if the message has been processed; FALSE otherwise.
Remarks
Called when the user has released the left mouse button.
The base-class version checks if a CGXChild has the focus (ChildWithFocus). If yes, it calls its LButtonUp method.
The CGXEditControl version activates the control and positions the caret if the user clicked into the text of the cell.