还是进程问题!帮帮我!

MiT 2001-05-18 10:28:00
怎么样使用SendMessageTimeout()函数确认窗口未响应,最好有源程序,我已经昏了,
什么也想不出来!!!!! :~~
...全文
53 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
SAsura 2001-05-20
  • 打赏
  • 举报
回复
设定一定的超时值,超时后函数返回0值,此时可以断定此进程以无响应,因为他没有办法继续处理收到的消息。
此函数对自己进程内的窗口无效,因为消息不进队列,直接发给了窗口消息处理函数。
hello_wyq 2001-05-20
  • 打赏
  • 举报
回复
The SendMessageTimeout function sends the specified message to a window or windows. The function calls the window procedure for the specified window and, if the specified window belongs to a different thread, does not return until the window procedure has processed the message or the specified time-out period has elapsed. If the window receiving the message belongs to the same queue as the current thread, the window procedure is called directly — the time-out value is ignored.

是不是让你调用得处理过程在发一个处理完毕得消息呢!

MiT 2001-05-19
  • 打赏
  • 举报
回复
??????

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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