Can somebody please explain the extent of this function? I'm a little confused of its functionality/advantage/implementation. Thanks, I appreciate it.
--Garfield
Printable View
Can somebody please explain the extent of this function? I'm a little confused of its functionality/advantage/implementation. Thanks, I appreciate it.
--Garfield
It's pretty much the same as GetMessage() except that it'll return when there are no messages (whereas GetMessage() wont return until it has retrieved a message), allowing you to call other functions when your window is idle.
It's a little bit like GetMessage only it doesn't take the message off the queue, it just lets you see what it is.
ahh...appears as if we have differing views, my friend :)
Yup, who's right/wrong???
It can do either, but you'd normaly want to remove a message from the queue so you'd specify the PM_REMOVE flag. If you wanted to leave it in the queue you'd use the PM_NOREMOVE flag.
Thanks, y'all!
--Garfield
I think i saw one implementation once that if PeekMessage returned that there wasn't a message, the program kept doing something, and if it returned that there was a message, it'd call GetMessage
Like thisQuote:
I think i saw one implementation once that if PeekMessage returned that there wasn't a message, the program kept doing something, and if it returned that there was a message, it'd call GetMessage
Good for games
I see, thanks guys!