Sign in to follow this  

Handling fullscreen Alt-Tab

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

This topic is 3732 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this