How to get WIndowProc Messages and wPram outside of the WindowProc function?
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
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.
1. The window procedure can call a function with the parameter.
2. The window procedure can set global variables.
2. The window procedure can set global variables.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement