什么时候该用哪个?

解决方案 »

  1.   

    according to Paul DiLascia
    http://msdn.microsoft.com/msdnmag/issues/1200/c/default.aspx"....
    the basic difference between PostMessage and SendMessage is that SendMessage sends a message to another window immediately by calling that window's procedure and waiting for it to return, whereas PostMessage queues the message in an MSG structure and returns immediately—without waiting.
    ...."
      

  2.   

    PostMessage马上返回而
    SendMessage等待发送消息的被处理后才返回