03-27-2011, 11:09 AM
Existing window of other process?
Easy way.
Create control in QM (use CreateControl or CreateWindowEx), and use SetParent to add it to the window.
But then the child window belongs to other thread and even to other process than its parent window. Something will not work well.
Other way.
Create dll and inject it into that process/thread, for example using a hook. Then the dll can create the child window (CreateWindowEx).
Easy way.
Create control in QM (use CreateControl or CreateWindowEx), and use SetParent to add it to the window.
But then the child window belongs to other thread and even to other process than its parent window. Something will not work well.
Other way.
Create dll and inject it into that process/thread, for example using a hook. Then the dll can create the child window (CreateWindowEx).
