RT. //bow

解决方案 »

  1.   

    TO saucer: WM_MBUTTONDOWN根本不响应。
    To forrest9910 : 滚轮能按下呀,你没试过?
      

  2.   

    have you tried? it works for me
      

  3.   

    h file:class CTestIdleView : public CView
    {
    .......
    protected:
    //{{AFX_MSG(CTestIdleView)
    afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
    };cpp file:BEGIN_MESSAGE_MAP(CTestIdleView, CView)
    //{{AFX_MSG_MAP(CTestIdleView)
    ON_WM_MBUTTONDOWN()
    //}}AFX_MSG_MAP
    ....
    END_MESSAGE_MAP()
    void CTestIdleView::OnMButtonDown(UINT nFlags, CPoint point) 
    {
             AfxMessageBox("yes, it worked!");
    CView::OnLButtonDown(nFlags, point);
    }
      

  4.   

    sorry, last line, :-) CView::OnLButtonDown(nFlags, point);
    ===>
    CView::OnMButtonDown(nFlags, point);
      

  5.   

    It works! 我的消息印象给到CAboutDlg里去了,难怪一直没响应。太粗心了,我。3x.