界面元素的自动更新(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的函数。
Of course, your Controller function probably won't actually just log a message to the console, it can do anything needed by your app - whether it's fetching data, updating the UI or anything else.
当然你的控制器函数不会只是输出一段调试信息,你可以根据需要做任何事情,获取数据、更新界面或者其他什么的都行。
应用推荐