Win32API Question:
Download Questions PDF

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.

Download Win32API Interview Questions And Answers PDF

Previous QuestionNext Question
what Message displayed when a window is destroyed?What is the function to repaint a window immediately?