WPF - HwndSource Hook for a child control with its own handle? #9126
-
Hello, I'd like to know if it's possible to use For a little bit of context, I have a control which creates a window using So now, is there a way to actually do it similar to how Note: IMO, the reason of this behavior is a conflict with the WPF way of handling window messages but I'm no expert on the subject, so I might be wrong. Update: It seems like I am able to set the It crashes because my WndProc is triggered. I tried to remove the code and return |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Please attach a repro project so that we can see your pinvokes and what you are trying to subclass. |
Beta Was this translation helpful? Give feedback.
-
You may refer to https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.gchandle?view=net-8.0 |
Beta Was this translation helpful? Give feedback.
You may refer to https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.gchandle?view=net-8.0