How to host the other process's window in a program?
I want to write a program, it can host the other process's window, the other process can work standalone, when I host the other process's window, the other process's window hasn't system menu, hasn't titlebar, can't resize. how to implement it? thanks.
Re: How to host the other process's window in a program?
I guess it can be done by asking the system for the window handle you want.
But most likely we can offer you a more "sane" way to accomplish what it is you want to do, if you explain to us what exactly you are trying to achieve.
1 Attachment(s)
Re: How to host the other process's window in a program?
Quote:
Originally Posted by
high_flyer
I guess it can be done by asking the system for the window handle you want.
But most likely we can offer you a more "sane" way to accomplish what it is you want to do, if you explain to us what exactly you are trying to achieve.
You can get my problem from the attachment's jpg file. I want to put the process B's window and process C's window in the process A's window,
and the process B and process C then run standalone, and them also can embed in process A, only the launch's parameter is different. you can get the detail information in the attachment's jpg. thanks. how to implement it?
Re: How to host the other process's window in a program?
As I said, you can probably use system calls to get the id of the windows you want, if it is the only way you want to implement your application.
This function (for windows, for linux you can google) might be a good string point.
Re: How to host the other process's window in a program?
Do you mean is use different code in different platform?
Re: How to host the other process's window in a program?
Yes, since these are system calls, you will have to have the correct code per system.
Re: How to host the other process's window in a program?
If you are on Linux/X11 you may be able to use QX11EmbedWidget and QX11EmbedContainer