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.
我想在每次调整窗口大小时重绘窗口,但我不想在调整大小完成之前调用 WM_PAINT。我尝试使用 WM_EXITSIZEMOVE 消息,但没有成功。有没有办法,例如在每次调整大小时(在调整大小后的每只鼠标上)绘制 TextOut?
谢谢
当您收到时WM_EXITSIZEMOVE,只需Invalidate()在窗口中生成一条WM_PAINT新消息并让 Windows 自行调度。
WM_EXITSIZEMOVE
Invalidate()
WM_PAINT