How can I get handle from a control not window? #1760
Replies: 2 comments 7 replies
-
EDIT: The original question was edited, originally it was asking how to get a handle from a WinForm app, but now it was updated to ask how to get a handle from a WinUI 3 control Hi @fallingrust, it looks like WinForms controls have a For example... var hwnd = Button2.Handle; |
Beta Was this translation helpful? Give feedback.
-
You can create a Win32 control as child and then get its handle |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It is possible that I get handle from a control not window in WinUI3? I have a WinForm application which use SDL 2、ffmpeg (a native lib)to render some network stream with control‘s hwnd.It is possible that I can refactoring this project,but do not change the native lib?
Beta Was this translation helpful? Give feedback.
All reactions