若线程的消息队列中没有消息,消息队列会消失吗

ncy_wisdom 2009-04-21 10:17:45
如题
...全文
132 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
ncy_wisdom 2009-04-23
  • 打赏
  • 举报
回复
谢谢大家的回答...
  • 打赏
  • 举报
回复
你不关闭消息队列,它是不会消失的。
changy 2009-04-22
  • 打赏
  • 举报
回复
of course not
wltg2001 2009-04-21
  • 打赏
  • 举报
回复
不会的.
bitxinhai 2009-04-21
  • 打赏
  • 举报
回复
消息队列在应用程序的整个生命期都是存在的,
没有消息的时候,不会消失的!!!!!
liuzxchina 2009-04-21
  • 打赏
  • 举报
回复
不会,如果没有消息,会执行OnIdle()

CWinApp::OnIdle

Override this member function to perform idle-time processing.

virtual BOOL OnIdle(
LONG lCount
);

Parameters
lCount
A counter incremented each time OnIdle is called when the application's message queue is empty. This count is reset to 0 each time a new message is processed. You can use the lCount parameter to determine the relative length of time the application has been idle without processing a message.

15,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧