You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for this very complete solution to hosting a Win32 inside WPF. I am running into an issue: I want to handle Key Down/Up events ocurring inside the Win32 but I am failing to do so. These seem to get lost somewhere as I do not receive them in the 'WndProc' override
protectedoverrideIntPtrWndProc(IntPtrhwnd,intmsg,IntPtrwParam,IntPtrlParam,refboolhandled){switch(msg){case(0x0100):case(0x0101):case(0x0102):case(0x0103):case(0x0104):case(0x0105):case(0x0106):case(0x0107):case(0x0109):Trace.WriteLine("I am receiving keyboard inputs!");break;}handled=false;returnIntPtr.Zero;}
I happens the same with Mouse-related messages. Can someone explain to me what's missing?
Cheers
The text was updated successfully, but these errors were encountered:
Issue related to: https://github.com/microsoft/WPF-Samples/tree/main/Migration%20and%20Interoperability/WPFHostingWin32Control
Hello,
Thank you for this very complete solution to hosting a Win32 inside WPF. I am running into an issue: I want to handle Key Down/Up events ocurring inside the Win32 but I am failing to do so. These seem to get lost somewhere as I do not receive them in the 'WndProc' override
I happens the same with Mouse-related messages. Can someone explain to me what's missing?
Cheers
The text was updated successfully, but these errors were encountered: