virtual void OnLButtonUp( UINT nFlags, POINT* point );



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.


The application should pass WM_KEYDOWN events information from the object window to the COpenGL object by using the OnKeyDown method function. This allows appropriate COpenGL object actions according to the currently set COpenGL object’s interaction mode.


class COglSampleView : public CView
  // specify operations or attributes as desired …

  COpenGL     m_OpenGL;
  // specify operations or attributes as desired …

void COglSampleView::OnLButtonDown(UINT nFlags, CPoint point) 
  // COpenGL object LButton down event processing
  m_OpenGL.OnLButtonDown( nFlags, ( POINT *) & point );

See Also

OnKeyDown, OnKeyUp, OnLButtonDown, OnMouseMove