SendMessage: function sends the specified message to a window or windows. The function calls the window procedure for the specified window and does not return until the window procedure has processed the message. 处理后返回. PostMessage: function, in contrast, posts a message to a thread's message queue and returns immediately. 放到队列后就返回. 可相当于同步与异步处理的区别
sendmessage 产生消息,找到对应处理函数,调用后返回。
SendMessage发送消息,等消息完成才返回
PostMessage是非阻塞方式。它只是把消息放到消息队列中,并不等待的返回,主线程继续向下执行。
function sends the specified message to a window or windows. The function calls the window procedure for the specified window and does not return until the window procedure has processed the message. 处理后返回.
PostMessage: function, in contrast, posts a message to a thread's message queue and returns immediately.
放到队列后就返回.
可相当于同步与异步处理的区别