Description: 该程序创建了一个线程,并在线程中实现精度条推进。首先调用AfxBeginThread函数创建一个新进程,然后调用PostThreadMessage函数乡新建的线程发送WM_BEGINPROG消息,并将禁毒条的指针作为参数传递给新的线程,最后再OnBeginProg函数通过参数wParam生成的一个进度条指针实现进度条的逐步推进。-the program to create a thread, the thread and achieve accuracy of the advance. First Call AfxBeginThread functions to create a new process. then call PostThreadMessage function Rural new threads send WM_BEGINP ROG news, and the target of the drug pass as a parameter to the new threads, Finally OnBeginProg wParam function parameters generated by the progress of a target to achieve progress the gradual progress. Platform: |
Size: 37203 |
Author:邢馨华 |
Hits:
Description: 程序创建两个线程,第一个线程没有消息队列,主线程尝试给第一个线程发送一个消息,我们可以看到PostThreadMessage()返回FALSE,程序创建的第二个线程有一个消息队列,主线程中的PostThreadMessage()返回TRUE,程序由Visual C++ 6.0开发,没有用到MFC-process creates two threads, one thread without Message Queue, the main thread to thread a resolution to send a message, we can see PostThreadMessage () returns FALSE, establish procedures to the second thread is a message queue, the main threads of PostThreadMessage () returns TRUE, procedures Visual C 6.0, did not use the MFC Platform: |
Size: 80223 |
Author:罗伟 |
Hits:
Description: 程序创建两个线程,第一个线程没有消息队列,主线程尝试给第一个线程发送一个消息,我们可以看到PostThreadMessage()返回FALSE,程序创建的第二个线程有一个消息队列,主线程中的PostThreadMessage()返回TRUE,程序由Visual C++ 6.0开发,没有用到MFC-process creates two threads, one thread without Message Queue, the main thread to thread a resolution to send a message, we can see PostThreadMessage () returns FALSE, establish procedures to the second thread is a message queue, the main threads of PostThreadMessage () returns TRUE, procedures Visual C 6.0, did not use the MFC Platform: |
Size: 79872 |
Author:罗伟 |
Hits:
Description: 该程序创建了一个线程,并在线程中实现精度条推进。首先调用AfxBeginThread函数创建一个新进程,然后调用PostThreadMessage函数乡新建的线程发送WM_BEGINPROG消息,并将禁毒条的指针作为参数传递给新的线程,最后再OnBeginProg函数通过参数wParam生成的一个进度条指针实现进度条的逐步推进。-the program to create a thread, the thread and achieve accuracy of the advance. First Call AfxBeginThread functions to create a new process. then call PostThreadMessage function Rural new threads send WM_BEGINP ROG news, and the target of the drug pass as a parameter to the new threads, Finally OnBeginProg wParam function parameters generated by the progress of a target to achieve progress the gradual progress. Platform: |
Size: 36864 |
Author:邢馨华 |
Hits:
Description: VS2005中C++环境,此为WMP SDK附带的程序,可供需要做播放器的人学习参考-VS2005 C environment, such as WMP SDK fringe procedure, needs to be done for the players to learn reference Platform: |
Size: 3317760 |
Author:林一飞 |
Hits:
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:
Description: Windows编程基础
源程序组成结构
MFC编程基础
鼠标应用程序实例
消息映射-PostMessage()
The PostMessage function places (posts) a message in the message queue associated with the thread that created the specified window and then returns without waiting for the thread to process the message. Messages in a message queue are retrieved by calls to the GetMessage or PeekMessage function.
BOOL PostMessage( HWND hWnd, // handle of destination window
UINT Msg, // message to post
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter )
其中
hWnd
Handle to the window whose window procedure is to receive the message. Two values have special meanings: ValueMeaningHWND_BROADCASTThe message is posted to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows. The message is not posted to child windows.NULLThe function behaves like a call to PostThreadMessage with the dwThreadId parameter set to the identifier of the current thread.
Msg
Specifies the messa Platform: |
Size: 479232 |
Author:李毅 |
Hits:
Description: VC++不使用MFC创建双线程的多线程实例源码包:twothread第一个线程没有消息队列,主线程尝试给第一个线程发送一个消息,我们可以看到PostThreadMessage()返回FALSE,程序创建的第二个线程有一个消息队列,主线程中的PostThreadMessage()返回TRUE,程序由Visual C++ 6.0开发,没有用到MFC。-No second twothread first thread message queue, the main thread to the first thread tries to send a message, we can see PostThreadMessage () returns FALSE, the program creates: VC++ does not use MFC to create a dual-threaded multi-threaded example source code package thread has a message queue, the main thread PostThreadMessage () returns TRUE, the program++ 6.0 developed by Visual C, did not use MFC. Platform: |
Size: 4096 |
Author:gpudn54 |
Hits:
Description: 主线程尝试给第一个线程发送一个消息,PostThreadMessage-The main thread attempts to send a message to the first thread, PostThreadMessage Platform: |
Size: 6144 |
Author:Muwlc |
Hits: