Can somebody please explain the extent of this function? I'm a little confused of its functionality/advantage/implementation. Thanks, I appreciate it.
--Garfield
Can somebody please explain the extent of this function? I'm a little confused of its functionality/advantage/implementation. Thanks, I appreciate it.
--Garfield
1978 Silver Anniversary Corvette
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.
zen
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???
1978 Silver Anniversary Corvette
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.
zen
Thanks, y'all!
--Garfield
1978 Silver Anniversary Corvette
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 thisI 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!
1978 Silver Anniversary Corvette