Moving window of another application
I've been looking for a way to move another window (not in my app) along
with the window of my app. I would like that other window to be attached
to the right or bottom side of my app, even if my app is dragged.
Getting a HWND for the other app and executing MoveWindow just doesn't do it.
Ideas anyone?
Re: Moving window of another application
A few questions:
- Are you sure that the HWND is for the app?
- When are you calling MoveWindow?
- Are you also considering if the size of your app window changes?
- Is the other app written by yourself or a third-party? If it's written by a third-party, the user of your app can easily set focus to the other app and move the window, destroying the effect that you wanted in the first place.
Regards,
Paul McKenzie
Re: Moving window of another application
Hi;
if you are sure the hWnd of other App window you get it right..then i suggest you can use
SetWindowPos win32 API, i always use this and work perfectly..
HTH
Hello World!!!