是MFC AppWizard生成的含CHtmlView的类不能接受鼠标消息。

解决方案 »

  1.   

    add virtual function PreTranslateMessage(MSG* pMsg) to your derived view class,
    if(pMsg->message==WM_LBUTTONDOWN)
    {
    //do what you want.
    }
      

  2.   

    用com接口怎么做,给点提示。只有一点例子就OK了。谢谢!
      

  3.   

    some articles in MSDN
    Keeping an Eye on Your Browser by Monitoring Internet Explorer 4.0 Events 
    HOWTO: Sink HTML Document Events for WebBrowser Host Q246247