Jump to content
  • Advertisement


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



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

I want my app to detect itself loosing the focus so I can release the mouse and generally shut down some other processing. I attempted to detect the individual messages but for some reason when I alt tab from my window to another I don''t seem to get any messages that would be indicative of the app loosing focus. All I seem to get is things to do with paint and paintsync. Any ideas? Chris Brodie http:\\fourth.flipcode.com

Share this post

Link to post
Share on other sites

if (LOWORD(wParam) == WA_INACTIVE)
bWindowActive = false;
bWindowActive = true;

That should be all you need... from what I understand of your questions.

- outRider -

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!