03-27-2011, 10:56 AM
Is it possible to add a child to existing window?
Thanks
Thanks
Add child to existing window
|
03-27-2011, 10:56 AM
Is it possible to add a child to existing window?
Thanks
03-27-2011, 10:59 AM
Can CreateControl be used?
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).
03-27-2011, 11:12 AM
Do you have example of CreateControl please?
03-27-2011, 11:18 AM
03-27-2011, 11:21 AM
03-27-2011, 11:23 AM
need opt waitmsg 1 and DestroyWindow.
03-27-2011, 11:31 AM
It created the edit box, but when message is sent to enter it throws back unsupported operation which is telling be the parent window can not read the entered information in the newly created edit box, correct?
03-27-2011, 11:33 AM
probably
03-27-2011, 11:34 AM
Next step...
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). Which I am a beginner at so we will see where that leads us. Possible have an example? Thanks
03-27-2011, 11:39 AM
Probably will be too difficult for you. Look in codeproject.com etc. QM cannot create dlls.
03-27-2011, 11:43 AM
03-27-2011, 11:47 AM
No, it is not API hooking.
Look for inject dll into other process with a hook If you did not create dlls previously, you will have to learn many many things. Quote:It created the edit box, but when message is sent to enter it throws back unsupported operation which is telling be the parent window can not read the entered information in the newly created edit box, correct? Probably will be the same with or without dll.
03-27-2011, 11:55 AM
03-27-2011, 11:58 AM
03-27-2011, 12:01 PM
Gintaras Wrote:Quote:It created the edit box, but when message is sent to enter it throws back unsupported operation which is telling be the parent window can not read the entered information in the newly created edit box, correct? Just saw this, if that's the case I will stop messing with this considering I don't really know much about the process of injecting the dll into the foreground process. Creating the dll itself isn't my problem but I am stumped as too how this injection process works! Thank you very much for being understanding and for all the help Gintaras! |
« Next Oldest | Next Newest »
|