Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Displaying a Window in Full-Screen Mode
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gildfosh
Neophyte

2 Posts

Posted - Dec 20 2004 :  5:57:01 PM  Show Profile  Reply with Quote
How do you go about displaying a window in fullccreen mode in directdraw?

Threshold
Squire

USA
44 Posts

Posted - Dec 20 2004 :  10:34:28 PM  Show Profile  Reply with Quote
The point of fullscreen mode is to NOT have a window, at least a visible one. You have to set up the primary back buffer to use full screen mode and exclusive mode. I believe the flag contains the words "FULLSCREEN". You also have to have at least one back buffer. You must also "connect" the back buffer to the primary buffer. I don't have the code at my fingertips, but that's basically what you have to do.


Life is short. They say "don't waste it, have fun." They're right, don't waste it...but DO redefine "fun."
Go to Top of Page

Lachlan87
Moderator

USA
160 Posts

Posted - Dec 21 2004 :  09:43:59 AM  Show Profile  Reply with Quote
I believe he wants to display a window over his fullscreen game. IE, so he can have a dialog pop up to change settings, etc.
Go to Top of Page

Lachlan87
Moderator

USA
160 Posts

Posted - Dec 21 2004 :  8:19:56 PM  Show Profile  Reply with Quote
gildfosh,

If I was correct, I think the answer is that you can't--at least not the way you want to. If you allow another window to be viewed while your program has exclusive control of the device, your program will lose exclusive control of the device. That's why you have to write speacial code to handle device loss when people press alt+tab.

Mind you, I could be wrong, but that's my understanding.

Here are some alteratives:

  • Run your game in windowed mode, but have it maximized so it looks full-screen.
  • Run in full-screen mode, but make your own "window" instead of using a true windows form.
  • Have your game temporarily switch to windowed mode, and then switch back when the window is closed.


I hope that helps you somehow.

If I was wrong, and you just wanted to know how to initialize DirectDraw in fullscreen mode, check out http://directX4VB.vbgamer.com.

-Lachlan
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.09 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.