1.

Write About Send Message And Post Message?

Answer»

SendMessage is a blocking call. ie., when a SendMessage() API is called from an application, the lines WRITTEN after this API call cannot be EXECUTED until the message is processed and returned by the window procedure.

Whereas PostMessage() just posts the message into the windows corresponding message queue and returns IMMEDIATELY IRRESPECTIVE of the message is processed or not.

SendMessage is a blocking call. ie., when a SendMessage() API is called from an application, the lines written after this API call cannot be executed until the message is processed and returned by the window procedure.

Whereas PostMessage() just posts the message into the windows corresponding message queue and returns immediately irrespective of the message is processed or not.



Discussion

No Comment Found