简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM