capture the last WM_SIZE

后端 未结 1 1660

When I resize my window I want to tell another part of my program that my window has changed size. I read on MSDN that:

WM SIZE Message
The WM SIZE message is se

相关标签:
1条回答
  • 2021-02-20 15:52

    When you start dragging a window, the system enters a modal move/resize loop; it does not return to your own message loop until the drag action has finished. You are still getting WM_SIZE because it is sent directly to the window procedure, but it does not flow through your own message loop.

    At the beginning of such a modal drag action, the system sends WM_ENTERSIZEMOVE to your window procedure. When you release the mouse button, your application will get WM_EXITSIZEMOVE. That is probably the message you want to trigger on.

    0 讨论(0)
提交回复
热议问题