从msdn上看二者的解释:

postmessage : 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 associated with a thread, use the PostThreadMessage function.

There is a limit of 10,000 posted messages per message queue. This limit should be sufficiently large. If your application exceeds the limit, it should be redesigned to avoid consuming so many system resources. To adjust this limit, modify the following registry key.

就是异步函数,但是投递数量有限制。

sendmessage:

Sends the specified message to a window or windows. The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message.

To send a message and return immediately, use the SendMessageCallback or SendNotifyMessage function. To post a message to a thread's message queue and return immediately, use the PostMessage or PostThreadMessage function.

可以看出sendmessage是同步的。

最新文章

  1. Python3实现最小堆建堆算法
  2. jsp有哪些内置对象?作用分别是什么?分别有什么方法?
  3. node基础06:回调函数
  4. PeCheck
  5. Mac终端命令行提示符格式更改方法
  6. hdu 4499 Cannon dfs
  7. 怎样在cmd(命令提示符)下进行复制粘贴操作
  8. Junit使用教程(一)
  9. HDU 5505 - BestCoder Round #60 - GT and numbers
  10. arc engine - ILayer.
  11. javascript无缝流畅动画轮播,终于让我给搞出来了。
  12. dataGridView行高自适应
  13. Ubuntu下nginx+uwsgi+flask的执行环境搭建
  14. ssl通关的概念(一个)
  15. Reactjs vs. Vuejs
  16. <经验杂谈>C#使用AES加密解密的简单介绍
  17. rest_framework之权限源码剖析
  18. DevExpress ASP.NET Core Controls 2019发展蓝图(No.1)
  19. IDAPython脚本之收集函数的调用信息
  20. 伪类选择器 E:nth-child(n)、E:nth-of-type(n)

热门文章

  1. LigerUi之Grid使用详解(二)——数据编辑
  2. HDU 1234 (浙大计算机研究生复试上机考试-2005年) 开门人和关门人 (水)
  3. Android -- DecorView
  4. 【架构】技术-工具-平台-语言&框架
  5. Kafka:ZK+Kafka+Spark Streaming集群环境搭建(二十五)Structured Streaming:同一个topic中包含一组数据的多个部分,按照key它们拼接为一条记录(以及遇到的问题)。
  6. TinyCore Nginx server with php-cgi and vsftpd
  7. oracle 学习blogs
  8. Solidworks如何在零件表面贴图
  9. IIS 7 及以上 IIS错误页“编辑功能设置...”提示“锁定冲突”
  10. 自己定义构造方法和description方法