用户界面线程 [英] Userinterface thread
问题描述
hi
如何创建UI线程。如果我构建应用程序,UI线程将会 显示四个ui对话框
how to create UI thread .if i build the application, UI thread will display four ui dialog boxs
推荐答案
您好
jakku_kutti ,
谢谢发布在这里。
>>如何创建UI线程。如果我构建应用程序,UI线程将会 显示四个ui对话框
已经创建并启动了主应用程序线程(在CWinApp派生类中提供)。如果要创建其他用户界面线程,则需要在创建用户界面线程时执行以从
驱动类CWinThread 。 您需要声明并实现此类,使用
DECLARE_DYNCREATE 和
IMPLEMENT_DYNCREATE 宏。此类还应覆盖某些函数,并可覆盖其他函数。
The main application thread (provided in your CWinApp-derived class) is already created and started for you. If you want to create additional user-interface threads, you need to do when creating a user-interface thread is to drive a class from CWinThread. You need to declare and implement this class, using the DECLARE_DYNCREATE and IMPLEMENT_DYNCREATE macros. This class should also override some functions and can override others.
有关详细信息,请参阅以下文档。
For more information, please refer to this document below.
https://msdn.microsoft.com/en-us/library/b807sta6.aspx?f=255&MSPPError=-2147217396
希望这对你有帮助。
最好的问候,
Sera Yu
Best Regards,
Sera Yu
这篇关于用户界面线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!