CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Posts
    42

    Unhappy Mouse event , ActiveX control

    i have wiritten a activex control. I testted it using ActiveX test containser and in web application (in html). It works well.

    But when include my activeX control in a dialog based application , mouse mouse events are not correctly posted to my activex control. Sometimes it posts sometimes it doesn't.

    mouse down is also not posted. only when i clicked two times(not double click.one click after few seconds another click), one mouse down message is posted to my activex controls.

  2. #2
    Join Date
    Sep 1999
    Location
    France
    Posts
    393

    Re: Mouse event , ActiveX control

    Hi,

    The activeX controls message pump seems not to be activated.
    Try to add the following line in the OnCreate event of your ActiveX.

    Code:
         OnActivateInPlace (TRUE, NULL); // == UI-Activate the control
    To have more informations on that function, have a look in MSDN to :

    PRB: MFC ActiveX Control in IE Doesn't Detect Keystrokes

    Best regards!

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