请看描述
CWnd::OnLButtonUp  
afx_msg void OnLButtonUp( UINT nFlags, CPoint point );ParametersnFlagsIndicates 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_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. 
pointSpecifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window.所以只如即可
void CADOTest1Dlg::OnLButtonUp(UINT nFlags, CPoint point) 
{
// TODO: Add your message handler code here and/or call default
if(nFlags& MK_RBUTTON  )//这时左键已按下,检查一下右键有没有按下即可
            ::AfxMessageBox("注意:同时按下了左右键!");
CDialog::OnLButtonUp(nFlags, point);
}