据我所知线程创建后是没有消息队列的.需要调用GetMessage 或 PeekMessage 之类关于消息的函数。可是我调用后依然接收不到信息 MSDN解释:引用When a message is blocked by UIPI the last error, retrieved with GetLastError, is set to 5 (access denied). The thread to which the message is posted must have created a
用 getmessage ,不用sleep,不用担心循环到假死状态
dim msgs as MSG
do
if getmessage(0,0,0,msgs) = 0 then exit do
select case msgs.message
case WM_MOUSEMOVE
......
case ...
.........
end select
loop
这么个流程