Windows API宏,在WinUser.h中根据是否已定义Unicode被定义为SendMessageW或SendMessageA,这两个函数将指定的消息发送到一个或多个窗口。此函数为指定的窗口调用窗口程序,直到窗口程序处理完消息再返回。而和函数PostMessage不同,PostMessage是将一个消息寄送到一个线程的消息队列后就立即返回。
The connection is returned to the free pool when sendMessage() exits.
当 sendMessage() 退出时,该连接返回到空闲池。
The sendMessage() function creates an AsyncMessage, which is an implementation of the IMessage interface, and then sends the message using the producer’s send() method.
sendMessage()函数先创建一个AsyncMessage,其是IMessage接口的一个实现,然后使用producer的send()方法发送此消息。
Windows API宏,在WinUser.h中根据是否已定义Unicode被定义为SendMessageW或SendMessageA,这两个函数将指定的消息发送到一个或多个窗口。此函数为指定的窗口调用窗口程序,直到窗口程序处理完消息再返回。而和函数PostMessage不同,PostMessage是将一个消息寄送到一个线程的消息队列后就立即返回。
应用推荐