05-13-2009, 04:47 AM
For example, in dialog function you can set 50 ms timer. On timer, detect owner window position and state, and if it changes, change dialog position and state. You can set timer using function SetTimer, there are examples in the forum.