How set fullscreen under win 2000 pro(console)?

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Jan 2008
Posts: 45
Reputation: Icebone1000 is an unknown quantity at this point 
Solved Threads: 0
Icebone1000's Avatar
Icebone1000 Icebone1000 is offline Offline
Light Poster

How set fullscreen under win 2000 pro(console)?

 
0
  #1
Nov 21st, 2008
Hi, i was tring to figure how set display mode to fullscreen under win2000, i saw at msdn that theres a SetConsoleDisplayMode, but that is for winXP +..

I tried
  1.  
  2. //sets the console window
  3. //to fullscreen
  4. void FullScreen(){
  5.  
  6. HANDLE consolehandle;
  7.  
  8. int sysmetrics_x=GetSystemMetrics(SM_CXFULLSCREEN);//get full width
  9. int sysmetrics_y=GetSystemMetrics(SM_CYFULLSCREEN);//get full height
  10.  
  11. COORD full_size;
  12. full_size.X= sysmetrics_x;
  13. full_size.Y= sysmetrics_y;
  14.  
  15. consolehandle=GetStdHandle(STD_OUTPUT_HANDLE);
  16.  
  17. SetConsoleScreenBufferSize(consolehandle, full_size);
  18.  
  19. }// F FullScreen

But that really doesn't set fullscreen mode...
o.o theres a special function for it?
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 941
Reputation: MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice 
Solved Threads: 92
MosaicFuneral's Avatar
MosaicFuneral MosaicFuneral is offline Offline
Posting Shark

Re: How set fullscreen under win 2000 pro(console)?

 
0
  #2
Nov 21st, 2008
Get DOS and use Mode 13h, lol

You have to get the max console size, then use SetConsoleDisplayMode()

edit: Actually I think you need WinXP for it, sorry.
Last edited by MosaicFuneral; Nov 21st, 2008 at 4:17 pm. Reason: posted the wrong function, lol
"Jedenfalls bin ich überzeugt, daß der Alte nicht würfelt."
"I became very sensitive to what will happen to all this and all of us." -Two geniuses named Albert
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,580
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 709
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: How set fullscreen under win 2000 pro(console)?

 
0
  #3
Nov 21st, 2008
>theres a special function for it?
Nope. The usual suggested solution is to programmatically simulate Alt+Enter. I do believe that searching our forums will give you the code to do so.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 45
Reputation: Icebone1000 is an unknown quantity at this point 
Solved Threads: 0
Icebone1000's Avatar
Icebone1000 Icebone1000 is offline Offline
Light Poster

Re: How set fullscreen under win 2000 pro(console)?

 
0
  #4
Nov 21st, 2008
tanx =D

  1. void FullScreen(){
  2.  
  3. keybd_event(VK_MENU, 0x38, 0, 0);
  4. keybd_event(VK_RETURN, 0x1c, 0, 0);
  5. keybd_event(VK_RETURN, 0x1c, KEYEVENTF_KEYUP, 0);
  6. keybd_event(VK_MENU, 0x38, KEYEVENTF_KEYUP, 0);
  7.  
  8. }// F FullScreen

i dont have idea of what are those parameters, but it works
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 116
Reputation: marco93 is infamous around these parts marco93 is infamous around these parts marco93 is infamous around these parts 
Solved Threads: 12
marco93 marco93 is offline Offline
Junior Poster

Re: How set fullscreen under win 2000 pro(console)?

 
0
  #5
Nov 21st, 2008
Originally Posted by Icebone1000 View Post
i dont have idea of what are those parameters, but it works
Read the doc instead of copying code that you even don't understand.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC