determing when form has stopped moving

D

dsa

Is there a way to determine when a user has stopped
moving a form? I know the move event tells when the form
is being moved but how do I know when the form has
stopped moving?
 
K

Klaus Löffelmann

Dsa,

simply overwrite WndProc of the window to keep track of. If you get a
WM_EXITSIZEMOVE, you know, that either the risizing- or the moving-process
has been completed. You can then find out simply by comparing the old size
and position of the form, what process has been finished.
Don't forget to call the base function of WndProc, since you application
wouldn't run properly anymore!

Klaus
 

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

Top