determing when form has stopped moving

  • Thread starter Thread starter dsa
  • Start date Start date
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?
 
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
 
Back
Top