Welcome![Sign In][Sign Up]
Location:
Search - PeekMessage postthreadmes

Search list

[GUI Developq1

Description: 程序创建两个线程,第一个线程没有消息队列,主线程尝试给第一个线程发送一个消息,我们可以看到PostThreadMessage()返回FALSE,程序创建的第二个线程有一个消息队列,主线程中的PostThreadMessage()返回TRUE,程序由Visual C++ 6.0开发,没有用到MFC-Procedures to create two threads, the first thread there is no message queue, the main thread to the first thread attempts to send a message, we can see PostThreadMessage () to return FALSE, the procedure to create the second thread has a message queue, main thread of PostThreadMessage () to return TRUE, the procedure from Visual C++ 6.0 development, did not use MFC
Platform: | Size: 79872 | Author: 王长虹 | Hits:

CodeBus www.codebus.net