你的OnMouseWheel函数是怎么样的?给代码看看

解决方案 »

  1.   

    public class MyComboBox : ComboBox 

     /*protected override void WndProc(ref System.Windows.Forms.Message m) 
      { 
       if(m.Msg ==  0x204// WM_LBUTTONDOWN 
       || m.Msg== 0x203) //WM_LBUTTONDBLCLK 
        return;
       base.WndProc(ref m); 
      } 
       */
     protected override void OnMouseWheel(System.Windows.Forms.MouseEventArgs e)
     {
    return;
    base.OnMouseWheel(e);
     }
    }我用 WndProc函数可以屏蔽掉左键,但是我不知道鼠标滚轮的消息值是多少;(((,我用OnMouseWheel函数,MouseEventArgs好像还没有定义鼠标滚轮键