What is the difference between GetMessage ,PeekMessage and PostMessage?
-
Regards nisha
-
Regards nisha
GetMessage and PeekMessage are used to get a message from message queue while PostMessage is used to post a message. The major difference between GetMessage and PeekMessage is that GetMessage doesn't return until it finds a message to retrieve from the Message Queue and PeekMessage() returns immediately weather there are any messages or not. While PostMessage is used to post a message to window and it returns immediately without waiting for the response.
Manish Agarwal manish.k.agarwal @ gmail DOT com
-
Regards nisha
SendMessage :) Which the same as PostMessage except it blocks until the message has been processed by the window.
Cédric Moonen Software developer
Charting control [v1.5 - Updated] OpenGL game tutorial in C++ -
Regards nisha
Do you feel the documentation about [^] not satisfactory? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]