These are the Win32 API's provided to send a message to window Or a way to notify a window to perform some action. SendMessage() - This message is sent directly to the window. It means it doesn't return until, the "sent message" is not processed( Message handler is not executed). PostMessage() - This message is sent to the application message queue, from where application will pick up the message later on, gets processed. This API returns immediately as soon as it posts the message to message queue. It never waits for the respective message handler to be executed.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
SendMessage() - This message is sent directly to the window. It means it doesn't return until, the "sent message" is not processed( Message handler is not executed).
PostMessage() - This message is sent to the application message queue, from where application will pick up the message later on, gets processed. This API returns immediately as soon as it posts the message to message queue. It never waits for the respective message handler to be executed.