与Refresh()相比,Invalidate() [英] Invalidate() compared to Refresh()
本文介绍了与Refresh()相比,Invalidate()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
picDocument是一个图片盒
当我做picDocument.Invalidate()时,框画颜料。
但是如果我做了picDocument。刷新()盒子不画画。
刷新做什么。我猜对了它做了一个Invalidate和一个更新。
有人会说光吗?
谢谢
picDocument is a picturebox
When I do picDocument.Invalidate() the box paints.
But if instead I do picDocument.Refresh() the box does not paint.
What does Refresh do. I guessed it did an Invalidate and an Update.
Can someone shed some light?
Thanks
推荐答案
刷新不会向控件发送绘制消息。它告诉
控制重绘自己。
" SamSpade" < ST ************** @ REMOVEaol.com>在消息中写道
news:O
Refresh doesn''t send a paint message to the control. It''s telling the
control to redraw itself.
" SamSpade" <st**************@REMOVEaol.com> wrote in message
news:O
************** @ TK2MSFTNGP11.phx.gbl ...
**************@TK2MSFTNGP11.phx.gbl...
picDocument是一个图片盒
当我做picDocument.Invalidate()时,框画颜料。
但如果相反我做了picDocument.Refresh()的方框不画画。
刷新做什么。我猜它有一个Invalidate和一个更新。
有人可以解决一些问题吗?
谢谢
picDocument is a picturebox
When I do picDocument.Invalidate() the box paints.
But if instead I do picDocument.Refresh() the box does not paint.
What does Refresh do. I guessed it did an Invalidate and an Update.
Can someone shed some light?
Thanks
*" yEaH rIgHt" < NOSPAM @哈哈> scripsit:
* "yEaH rIgHt" <nospam@haha> scripsit:
刷新不会向控件发送绘制消息。它告诉
控件重绘自己。
Refresh doesn''t send a paint message to the control. It''s telling the
control to redraw itself.
有什么区别?
(我知道区别,但我想听听;-)
-
Herfried K. Wagner [MVP]
< URL:http://dotnet.mvps.org/>
What''s the difference?
(I know the difference, but I want to hear it ;-))
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
这篇关于与Refresh()相比,Invalidate()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文