CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Apr 2006
    Posts
    79

    a problem of Mouse event with activeX

    Hi everybody,

    Now I countering a strange problem with mouse event. In my ActiveX control, I show a MessageBox whenever mouse move in the activeX control.
    You can see it as below:
    Code:
    void CMyCOMCtrl::OnMouseMove(UINT nFlags, CPoint point)
    {
    	
    	MessageBox("moving");
    
    	COleControl::OnMouseMove(nFlags, point);
    }
    It 's too normal, there isn't any unusual (of course).
    Now I use this activeX in a C# application, when I move mouse over the control, certainly this message appear. But when I press left mouse button down (WM_LBUTTONDOWN) and move mouse over the control, nothing happen. I can't understand what's the problem. Could you explain it for me.

    P/S: if I use this control in a VC++ application, everything go well.

    Thanks in advance.

    Best regards,
    Vinh
    Last edited by vinhie47; March 21st, 2007 at 05:42 AM.
    My English is not good. So you maynot understand what I say!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured