Mtmdi sample : demonstrates an mfc user interface thread > mtmdi示例:演示mfc用户界面线程
Mfc distinguishes two types of threads : user interface threads and worker threads Mfc区分两种类型的线程:用户界面线程和辅助线程。
Nevertheless , mtmdi does illustrate techniques for implementing an mfc user interface thread 但mtmdi确实阐释了实现mfc用户界面线程的方法。
The user interface thread has both message rotation queue and window . so it can receive messages 用户界面线程有消息循环队列和窗口,它可以接收消息。
A user interface thread has its own message pump for handling user interface events separately from other threads 用户界面线程有自己独立于其他线程的消息泵来处理用户界面事件。
The user interface cannot be updated from a procedure running on a thread that is not the user interface thread 如果运行过程的线程不是用户界面线程,则无法从该过程更新用户界面。
Plays the . wav file using the user interface thread , and loads the . wav file first if it has not been loaded 使用用户界面( ui )线程播放. wav文件,如果尚未加载. wav文件,则先加载该文件。
Compare the sources for the mdi and mtmdi samples to study the programming overhead associated with using mfc user interface threads 比较mdi和mtmdi示例的源代码,研究与使用mfc用户界面线程相关的编程系统开销。
Class is a control that works with visual designers and is meant to be used in user interface contexts ; it raises events on the user interface thread 类是使用可视化设计器的控件,旨在用于用户界面上下文中;它对用户界面线程引发事件。
The mtmdi sample illustrates an mfc user interface thread where user interface events are processed in a separate thread from the main application thread Mtmdi示例阐释mfc用户界面线程,其中用户界面事件在一个独立于主应用程序线程的线程中被处理。