Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Focus, Focus, Ultra Death In The Mega Face!

This topic is 5534 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

How do I check if a Window has gone out of focus? Im making a Windowed Direct3D Game (Crazy Tetris) and want to be able to pause automatically when the user clicks on a different window or minimizes. I will be done just as soon as i fix a few mp3 problems and fix this minimizing issue. I will try and post it online for you all to play. Should be fun. First person to answer my question correctly gets sex! I mean, What???

Share this post


Link to post
Share on other sites
Advertisement
when you get a WM_ACTIVATE event check

if(LOWORD(wParam) == WA_INACTIVE)// check if lost focus

if(LOWORD(wParam) == WA_CLICKACTIVE || LOWORD(wParam) == WA_CLICKACTIVE) // check if getting focus

Can I have my sex now?

Share this post


Link to post
Share on other sites
Considering what the contract entails, the proper legal phrasing of "oral contract being legally binding" is probably a better joke...

(joke shamelessly plaguerized from www.dieselsweeties.com)

Share this post


Link to post
Share on other sites

  • 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!