Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道如何检测 Win32(c++) 窗口是否停止移动?
WM_MOVE 检测窗口何时移动,但如何检测它何时停止移动?
您要处理的 windows 消息是WM_EXITSIZEMOVE.
WM_EXITSIZEMOVE
WM_EXITSIZEMOVE 消息 (Windows) @ MSDN
根据您希望完成的任务,还可能通过对 做出反应来为您提供更好的服务,WM_NCLBUTTONUP当鼠标按钮在窗口的非客户区域中释放时发送,例如任何窗口的标题栏标题、边框镶边等。
WM_NCLBUTTONUP
WM_NCLBUTTONUP 消息 (Windows) @ MSDN