PostMessage与SendMessage
生活随笔
收集整理的這篇文章主要介紹了
PostMessage与SendMessage
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?PostMessage消息發出后不等消息函數處理完就執行它的下一語句???
?SendMessage消息發出后阻塞等消息函數處理完執行它的下一語句
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. |
總結
以上是生活随笔為你收集整理的PostMessage与SendMessage的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SAP系统财务模块的集团公司处理模式
- 下一篇: Rose与PowerDesigner:两