PostMessage与SendMessage
生活随笔
收集整理的這篇文章主要介紹了
PostMessage与SendMessage
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
?PostMessage消息發(fā)出后不等消息函數(shù)處理完就執(zhí)行它的下一語(yǔ)句???
?SendMessage消息發(fā)出后阻塞等消息函數(shù)處理完執(zhí)行它的下一語(yǔ)句
The PostMessage function places (posts) a message in the message queue associated with the thread that created the specified window and returns without waiting for the thread to process the message.
To post a message in the message queue associate with a thread, use the PostThreadMessage function.
BOOL PostMessage(HWND hWnd, // handle to destination window UINT Msg, // message WPARAM wParam, // first message parameter LPARAM lParam // second message parameter );Parameters
hWnd| HWND_BROADCAST | The message is posted to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows. The message is not posted to child windows. |
| NULL | The function behaves like a call to PostThreadMessage with the dwThreadId parameter set to the identifier of the current thread. |
總結(jié)
以上是生活随笔為你收集整理的PostMessage与SendMessage的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: SAP系统财务模块的集团公司处理模式
- 下一篇: Rose与PowerDesigner:两