How to get WIndowProc Messages and wPram outside of the WindowProc function?

Started by
1 comment, last by Buckeye 14 years, 5 months ago
Hi, I am about to use WIN32 for input and I was wondering how you actually get a message from the window outside of WindowProc funtion. And for the matter after I get the message how do I check the WPARAM wParam outside of the WindowProc function. Regards Chad
Advertisement
Take them from the message loop for the thread. See GetMessage and PeekMessage and DispatchMessage. The thread owns the message queue as well as the window.
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
1. The window procedure can call a function with the parameter.
2. The window procedure can set global variables.

Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly.

You don't forget how to play when you grow old; you grow old when you forget how to play.

This topic is closed to new replies.

Advertisement