日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

PostMessage与SendMessage

發布時間:2024/4/15 50 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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
[in] Handle to the window whose window procedure is to receive the message. The following values have special meanings. ValueMeaning
HWND_BROADCASTThe 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.
NULLThe function behaves like a call to PostThreadMessage with the dwThreadId parameter set to the identifier of the current thread.

Msg
[in] Specifies the message to be posted.
wParam
[in] Specifies additional message-specific information.
lParam
[in] Specifies additional message-specific information.

總結

以上是生活随笔為你收集整理的PostMessage与SendMessage的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。