界面元素的自动更新(UI Updating) 空闲时间的界面更新是几件事情协同工作的结果: CMessageLoop对象,嵌入类CIdleHandler 和 CUpdateUI,CMainFrame类继承了这两个...
基于12个网页-相关网页
For the function in Listing 2, extract the data property of the event, as this is the actual data sent by the thread, and pass it to another function for updating the UI.
对于清单2中的这个函数,提取event的data属性,因为这是被线程发送的实际数据,然后将它发送给另一个函数来更新ui。
In this example, the code that gets new tweets directly calls functions for updating the UI.
在本例中,得到新t weet的代码直接调用更新ui的函数。
So, that's the problem: we need a simple way to change a property of several UI elements by updating just one condition.
所以,这就是问题所在:我们需要一个简单的方法来改变数,更新用户界面的条件只有一个元素的财产。
应用推荐