[WD18] - Window Resize Completed

Startbeitrag von JP am 14.09.2013 12:53

Hi All,

Is there a way to know when the user has finished resizing a window? i.e. when the user has resized the window and let go of the mouse button and hence the resize operation is completed?



Hi JP,

This should be possible by hooking into the Windows WM_SIZE event. Checkout the Event() functions in the Windev help and how to process Windows OS messages like WM_SIZE in your case.

I believe that wParam will contain a value like e.g. SIZE_RESTORED when the user finished resizing it.

Don't forget to load the Windows main constants in your project initialisation code so you don't have to declare them yourself:
EXTERN "Windows.wl" (or something similar)


Peter H.

von Peter Holemans - am 14.09.2013 13:54
I think you need WM_EXITSIZEMOVE

btw it is
and if you are interested to see what is in it, this file is located in Windev18\Personal\External

von Arie - am 14.09.2013 14:12
Peter, thanks - this does the trick!

von JP - am 16.09.2013 15:41
Arie, thanks very much. I have it working exactly as you and Peter suggested :)

von JP - am 16.09.2013 15:42
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.