调整 C# Windows 窗体大小时防止窗口重绘
我可以监听哪些窗口消息或事件来阻止窗口重绘其大小调整的每个像素?
也就是说,当用户单击窗口边缘并开始调整其大小时,我不想重新绘制整个内容,直到他松开为止。这是因为由于某种原因,目前调整大小时很不稳定,可能是因为所有东西都在重新对接等等。
我尝试了 WM_SIZING 但这只告诉我它正在重新调整大小,我希望知道调整大小的开始和结束,以便我可以暂停布局直到用户停止调整大小。
What windows message or event can i listen to in order to stop a window from being redrawing every pixel of it's resize?
That is, when a user clicks on the edge of the window and starts to re-size it, i don't want to re-draw the entire contents until he lets go. This is because for some reason it's currently choppy at resizing probably because everything is re-docking and what not.
I tried WM_SIZING but that only tells me it's being re-sized, i wish to know the start and end of the sizing so i can suspend the layout until the user stops resizing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系,刚刚发现这两个事件。
工作是一种享受
Nevermind, just found these two events.
Works a treat