PeekMessage(&msg,NULL,0,0,PM_NOREMOVE); AfxGetApp()->PumpMessage();有PumpMessage()函数详细说明吗?请告知.PeekMessage(&msg,NULL,0,0,PM_NOREMOVE); AfxGetApp()->PumpMessage();

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 06:56:52
PeekMessage(&msg,NULL,0,0,PM_NOREMOVE);AfxGetApp()->PumpMessage();有PumpMessage()函数详细说明吗?请告知.PeekMess

PeekMessage(&msg,NULL,0,0,PM_NOREMOVE); AfxGetApp()->PumpMessage();有PumpMessage()函数详细说明吗?请告知.PeekMessage(&msg,NULL,0,0,PM_NOREMOVE); AfxGetApp()->PumpMessage();
PeekMessage(&msg,NULL,0,0,PM_NOREMOVE); AfxGetApp()->PumpMessage();
有PumpMessage()函数详细说明吗?请告知.
PeekMessage(&msg,NULL,0,0,PM_NOREMOVE);
AfxGetApp()->PumpMessage();

PeekMessage(&msg,NULL,0,0,PM_NOREMOVE); AfxGetApp()->PumpMessage();有PumpMessage()函数详细说明吗?请告知.PeekMessage(&msg,NULL,0,0,PM_NOREMOVE); AfxGetApp()->PumpMessage();
第一句:从消息队列中取出一个消息存到msg结构里,这个消息不会在队列里删除(PM_NOREMOVE决定);
第二句:当前应用程序的全局对象app强制消息处理之.
====下面从MSDN拷贝的PumpMessage函数介绍===
PumpMessage contains the thread's message loop. PumpMessage is called by CWinThread to pump the thread's messages. You can call PumpMessage directly to force messages to be processed, or you can override PumpMessage to change its default behavior.
Calling PumpMessage directly and overriding its default behavior is recommended for advanced users only.