Horrid
Programmer
- May 20, 1999
- 373
Hit a brick wall getting this to work (im a C++ newbie).
I can launch my app no problems with createprocess but then I have problems getting SetWindowPos to do anything with it.
As I didn't have the hWnd I tried to use an EnumThreadWindows to optain the hWnd of the window in a hope that I could then use that with SetWindowPos. Not 100% sure if I ever did manage to get the hWnd but setwindowpos wanted CWND. Now I'm stuck working out exactly how to create a CWND object from the process I launched just so I can use setwindowpos.
any hints on where I'm going wrong?
I can launch my app no problems with createprocess but then I have problems getting SetWindowPos to do anything with it.
As I didn't have the hWnd I tried to use an EnumThreadWindows to optain the hWnd of the window in a hope that I could then use that with SetWindowPos. Not 100% sure if I ever did manage to get the hWnd but setwindowpos wanted CWND. Now I'm stuck working out exactly how to create a CWND object from the process I launched just so I can use setwindowpos.
any hints on where I'm going wrong?