Jump to content
  • Advertisement
Sign in to follow this  
Turold

Handling fullscreen Alt-Tab

This topic is 3947 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 am implementing graceful fullscreen alt-tab handling for my casual game framework. I have a problem, since I don't know what exactly happens with the window when I alt-tab. I know that window loses focus. Essentially, my question is what should be done with the window to properly restore fullscreen when user clicks minimazed window or alt-tabs back? I know about DX stuff cleanup and reset. I just don't know what should I do with the window. What messages/notifications should I look-up? I checked WM_ACTIVATE and WM_ACTIVATEAPP but it's not what I need. I need to know precisely when user tries to return to the game and how to manipulate window do handle this event.

Share this post


Link to post
Share on other sites
Advertisement
Hey there, i think it is WM_ACTIVATE..


case WM_ACTIVATE:
if (WA_INACTIVE == _wParam)
setWindowActive(false);
else if (WA_ACTIVE == _wParam)
setWindowActive(true);
else if (WA_CLICKACTIVE == _wParam)
setWindowActive(true);
return 0;



setWindowActive() is a function defined by myself.
Appologises if im wrong :s

Share this post


Link to post
Share on other sites
You should also know that WM_KILLFOCUS and WM_SETFOCUS are the message that tells you when you have input focus.

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.

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!