Jump to content
  • Advertisement

Archived

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

gimp

no WM_KILLFOCUS?

This topic is 6088 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
Advertisement

case WM_ACTIVATE:
{
if (LOWORD(wParam) == WA_INACTIVE)
bWindowActive = false;
else
bWindowActive = true;
break;
}


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!