Jump to content
  • Advertisement

Archived

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

tscott1213

FullScreen to Windowed w/o destroying window

This topic is 5564 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 recently read the tutorial on this site by "null_pointer" that explains a methodology for switching from FullScreen to Windowed mode using Directdraw. In the article the applications window is destroyed and a new one created because DirectX "hooks" to the window. I have two questions on this: 1) Is this necessary? I don''t like the idea of my DirectX specific code destroying the window when it doesn''t "own" the window. I am also implementing the "application framework" outlined by TANSTAAFL in "Game Programming Tricks of the Trade" therefore I have other objects that do "own" the window. 2) What does it mean to "hook" to the window? Thanks for the help. Todd

Share this post


Link to post
Share on other sites
Advertisement
If VC++ and have DirectX 9 SDK installed, create a standard DirectX 9.0 Application with the wizard. The code for going to fullscreen from windowed and back again without destroying the window is in there.

Happy coding!

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!