Jump to content
  • Advertisement
Sign in to follow this  
chadsxe

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

This topic is 3123 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
1. The window procedure can call a function with the parameter.
2. The window procedure can set global variables.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!