Sign in to follow this  

Task Switch - Alt-Tab

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

Hey all, In some games I have noticed that Alt-Tab is disabled. Is there a quick and easy way to implement this? Also, I have noticed that when I Alt-Tab out and then back in, the full screen is gone, and the window is back to the resolution size. So if disabling Alt-Tab is not the right thing to do, do I need to do something within the Message Loop to make the app go back to full screen? Thanks!!

Share this post


Link to post
Share on other sites
I figured it out, for those who may be wondering...

If you Alt-Tab, the device gets lost. Use the TestCooperativeLevel and Reset methods and when the user switches back to the app, everything should be working. If the TestCooperativeLevel returns D3DERR_DEVICELOST do not render, but return. You are waiting for the Test to return D3DERR_DEVICENOTRESET.

Cheers....

Sorry if this is old news!

Share this post


Link to post
Share on other sites

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