CGXGridCore::OnRButtonClickedRowCol
virtual BOOL OnRButtonClickedRowCol(ROWCOL nRow, ROWCOL nCol, UINT nFlags, CPoint pt);?
nRow
Specifies the row id.
nCol
Specifies the column id.
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.
pt
Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window.
Return Value
TRUE if the message has been processed; FALSE otherwise.
Remarks
Called from CGXControl::RButtonUp when the user clicked and released the right mouse button.
You can either override OnRButtonClickedRowCol for all controls or (C++) subclass a specific control and override the control’s RButtonUp method.
You can use CGXControl::IsKindOf to determine the control’s class and compute the return value depending on the control’s runtime-type information.
See Also
CGXGridCore::GetControl CGXControl::RButtonUp CGXControl::IsKindOf