RSS Forums RSS

How set fullscreen under win 2000 pro(console)?

Please support our C++ advertiser: Programming Forums
Thread Solved
Reply
Posts: 42
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)?

  #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
			//sets the console window
			//to fullscreen
void FullScreen(){

	HANDLE consolehandle;

	int sysmetrics_x=GetSystemMetrics(SM_CXFULLSCREEN);//get full width
	int sysmetrics_y=GetSystemMetrics(SM_CYFULLSCREEN);//get full height

	COORD full_size;
		full_size.X= sysmetrics_x;
		full_size.Y= sysmetrics_y;

	consolehandle=GetStdHandle(STD_OUTPUT_HANDLE);

	SetConsoleScreenBufferSize(consolehandle, full_size);
	
}// F FullScreen

But that really doesn't set fullscreen mode...
o.o theres a special function for it?
AddThis Social Bookmark Button
Reply With Quote  
Posts: 711
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: 79
MosaicFuneral's Avatar
MosaicFuneral MosaicFuneral is online now Online
Master Poster

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

  #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 3: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  
Posts: 7,460
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: 676
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

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

  #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  
Posts: 42
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)?

  #4  
Nov 21st, 2008
tanx =D

void FullScreen(){

    keybd_event(VK_MENU, 0x38, 0, 0);
    keybd_event(VK_RETURN, 0x1c, 0, 0);
    keybd_event(VK_RETURN, 0x1c, KEYEVENTF_KEYUP, 0);
    keybd_event(VK_MENU, 0x38, KEYEVENTF_KEYUP, 0);	
	
}// F FullScreen

i dont have idea of what are those parameters, but it works
Reply With Quote  
Posts: 75
Reputation: marco93 has a little shameless behaviour in the past 
Solved Threads: 10
marco93 marco93 is offline Offline
Junior Poster in Training

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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Views: 503 | Replies: 4 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:27 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC