locked
Mouse events are not triggered to UI from different process RRS feed

  • Question

  • Hi,

    I created a WPF UI designed to be loaded in a different process, for CLR incompatibility reason to application. This application (from 3rd party) will host my UI. Everything works fine until I clicked my UI, the whole application hangs. I'm able to find the root cause, and it's a group box ATL user control. The group box acts as a panel to my UI. If I try to hide the group box, using some win32 API's, the issue will not happen.

    I have several options on fixing this issue, one of them is to inform the 3rd party company and ask them to fix. But I cannot enforce this to them, so I would like to know if I can do some work around on my end to prevent this from happening.

    Can anyone give me explanation why this happen?

    Thank you very much.

    Monday, March 11, 2019 6:15 AM

All replies

  • Hello,

    Thanks for posting here.

    >>I created a WPF UI designed to be loaded in a different process, for CLR incompatibility reason to application. This application (from 3rd party) will host my UI. 

    This forum is about c++ development. It seems that your issue is more related to the third-party application or maybe WPF, so I will move this thread to off-topic.

    Your understanding and cooperation will be grateful.

    Best Regards,

    Jack Zhang


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, March 11, 2019 9:00 AM
  • Hi,

    Thanks for your reply.

    Although my UI is WPF, the issue that caused this is a C++ application. What I did so far was create a simple WPF UI and load it in the C++ application's process, this works fine. But when I load the same WPF UI but in a different process, the issue happens. It seems like the mouse event message is blocked by some window object in C++ application when UI is not created on it's own process.

    Tuesday, March 12, 2019 8:27 AM