Question about accessing new created windows

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
 
I

Ian Collins

rocketmagnet said:
Now my question: is there a way with the win32-api to change the
window position of every window that get's created ?

Maybe, but you'd have to ask on a windows group to find out.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top