摘要:
采用PostThreadMessage即可BOOLPostThreadMessage(DWORDidThread, //线程ID,通过创建线程后的idUINT Msg, //消息idWPARAMwParam, LPARAMlParam);然后在线程通过GetMessage or PeekMessage去获取该消息.代码片段如下:unsigned int CALLBACK thread_func(LPVOID lp){while(1){MSG msg; while (GetMessage(&msg, NULL, 0, 0))//while (PeekMessage(&msg, N 阅读全文
posted @ 2011-07-13 09:57
小 楼 一 夜 听 春 雨
阅读(2488)
评论(0)
推荐(0)

浙公网安备 33010602011771号