Click to See Complete Forum and Search --> : Moving window of another application


arstarst
April 20th, 1999, 01:44 PM
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?

Paul McKenzie
April 20th, 1999, 02:10 PM
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

balak yap
April 21st, 1999, 12:06 AM
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!!!