Free2Code
The majority of forums are now only available as archives, which means posting/editing is disabled.

The Anything and Everything forum is still open.
 
Time: 2014-10-31, 07:16pm
Full Screen Question
Subject: Full Screen Question  ·  Posted: 2004-05-04, 07:30am
Rank: ? (37)
Member #: 11472
I'm making a blue screen of death simulator. I need a way to force the program to open full screen or it will not really work. Any ideas would be greatly appreciated!

Is this a dream?
 
  Reply to this ·  Post link ·  Top
Subject: Re: Full Screen Question  ·  Posted: 2004-05-04, 07:18pm
Rank: ? (614)
Member #: 9832
If you are making a proper windows program (not console) you can make window fullscreen, but I think the only way is to use directX (is there a way to do it in winAPI? if anyone knows, I'm interested too)

this is a line from one directX demo I made some time ago:

m_pIDraw->SetCooperativeLevel(m_hWnd, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN | DDSCL_ALLOWREBOOT);

DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN : these make the window fullscreen and allow no other programs to use the display.

Complete directX initialization is too long thing to post here but check any tutorial. Usually first thing explained is how to get a fullscreen display.

Or you can check out openGL for the same thing

Chaos reigns within - Reflect, repent, and reboot - Order shall return
 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.