R
rocketmagnet
Hello everyone, i got a new monitor today and have a problem: every
new created window is created on the first screen, also when i'm
working on the second one.
Now my question: is there a way with the win32-api to change the
window position of every window that get's created ? I found FindWindow
() that i could use to get the HWND of a window, but my problem is
that i don't know when a new window gets created.
The only solution i can think of is to write an application that runs
in the background that checks every few seconds if there is a new
window, and if so change it's position (on a few conditions like mouse
position).
Is there a simpler solution that does not consumes that much cpu
time ?? I need a way to create a hook that gets called everytime a new
window is created. Has the win32-api a solution to this ?
best regards,
Steven Truppe
new created window is created on the first screen, also when i'm
working on the second one.
Now my question: is there a way with the win32-api to change the
window position of every window that get's created ? I found FindWindow
() that i could use to get the HWND of a window, but my problem is
that i don't know when a new window gets created.
The only solution i can think of is to write an application that runs
in the background that checks every few seconds if there is a new
window, and if so change it's position (on a few conditions like mouse
position).
Is there a simpler solution that does not consumes that much cpu
time ?? I need a way to create a hook that gets called everytime a new
window is created. Has the win32-api a solution to this ?
best regards,
Steven Truppe