Hi,
Im pretty new to C++, but have done alot with java/vb etc. I am tearing my hair out with this :
I am launching an App with CreateProcess(), and then need to get its HWND for the main window (eg notepad.exe) to set it to always stay on top. Now when i launch it, it may not have initialized the top window byt the time the C code executes. Can i either get it to post me a message when the window is ready, or get it some other way? I have been using getActiveWindow, but i dont always get it (sometimes i get the console / VC++ etc). I can then set it to alwaysOnTop with setWindowPos, and wait for it to end with CreateSingleObject(). Any help / further questions u want to ask me on the problem would be greatly appreciated.
Cheers
-=A=-
Im pretty new to C++, but have done alot with java/vb etc. I am tearing my hair out with this :
I am launching an App with CreateProcess(), and then need to get its HWND for the main window (eg notepad.exe) to set it to always stay on top. Now when i launch it, it may not have initialized the top window byt the time the C code executes. Can i either get it to post me a message when the window is ready, or get it some other way? I have been using getActiveWindow, but i dont always get it (sometimes i get the console / VC++ etc). I can then set it to alwaysOnTop with setWindowPos, and wait for it to end with CreateSingleObject(). Any help / further questions u want to ask me on the problem would be greatly appreciated.
Cheers
-=A=-