943,846 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 881
  • C++ RSS
Nov 21st, 2008
0

How set fullscreen under win 2000 pro(console)?

Expand Post »
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
C++ Syntax (Toggle Plain Text)
  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?
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Icebone1000 is offline Offline
50 posts
since Jan 2008
Nov 21st, 2008
0

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

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
Reputation Points: 888
Solved Threads: 114
Nearly a Posting Virtuoso
MosaicFuneral is offline Offline
1,270 posts
since Nov 2008
Nov 21st, 2008
1

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

>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.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Nov 21st, 2008
0

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

tanx =D

C++ Syntax (Toggle Plain Text)
  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
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Icebone1000 is offline Offline
50 posts
since Jan 2008
Nov 21st, 2008
0

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

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.
Reputation Points: -76
Solved Threads: 14
Junior Poster
marco93 is offline Offline
132 posts
since Apr 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Linked List - Need help deleting!
Next Thread in C++ Forum Timeline: c++ program to find the product of two array of integers-clear errors?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC