Jump to content
  • Advertisement
Sign in to follow this  

FullScreen Switch with Alt-Enter

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

Hi, in my program made wth Direct3D 9, when the user press the alt-enter keys the program goes windowed or fullscreen depending on the case. This is ok, after some hours I made it work... The problem is that the system beeps after each mode switch and I do not want this. Let me explain how I did it: there are two hidden windows, one popup window for the fullscreen mode and one overlapped window for the desktop window (windowed mode). After that key press, the windows are switched and only one is shown. I made it this way (with two hidden windows) because my program needs to remember the restore state of the desktop window. My program watches the keys with the window procedure (it does not use keyboard accelerators). My question is why is so common in these cases, the system to beep and how I can make it function properly. I can suppose the problem is with the key presses, but I cannot found any system message to work with the problem. Any help or tip for this type of procedure is welcome. And excuse my english, I am learning yet.

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!