Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect when a Window has stopped moving?

Does anyone know how to detect if a Win32(c++) window has stopped moving?

WM_MOVE detects when the window is moving, but how does one detect when it has stopped moving?

like image 895
James Diaz Avatar asked Nov 21 '12 01:11

James Diaz


1 Answers

The windows message you wish to handle is WM_EXITSIZEMOVE.

WM_EXITSIZEMOVE message (Windows) @ MSDN

Depending on what you wish to accomplish, there's also the possibility that you might be better served by reacting to WM_NCLBUTTONUP, which is sent when the mouse button is released in the non-client areas of a window, such as the title bar of any window with a caption, border chrome, etc.

WM_NCLBUTTONUP message (Windows) @ MSDN

like image 189
meklarian Avatar answered Oct 01 '22 10:10

meklarian