insert other application window to my main window

Ddanilwhale9/7/2022
hellooooo! to be short, i want to insert other application window (ex. notepad) to my window, maybe this is not possible, but then ill be know this in future! :)
JJester9/7/2022
It's very easy, if you have your window handle, and the window handle of the window you want in yours (which is called a child window).
One way to do it is with these 2 functions you have to PInvoke.
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-findwindoww https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setparent

Find the window you want as a child by its title, null for the class name. Then use the window handle to set your window as its parent.
Ddanilwhale9/7/2022
oh guy
Ddanilwhale9/7/2022
thanks
Ddanilwhale9/7/2022
i know that it needs handle
Ddanilwhale9/7/2022
i worked with ui on xna like this :)
JJester9/7/2022
it might not always work or work as you espect though
Ddanilwhale9/7/2022
ok
Ddanilwhale9/7/2022
anyways thanks