作业帮 > 综合 > 作业

PeekMessage(&msg,NULL,0,0,PM_NOREMOVE); AfxGetApp()->PumpMes

来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/16 23:15:49
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()->PumpMes
第一句:从消息队列中取出一个消息存到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.