| | |
How set fullscreen under win 2000 pro(console)?
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
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
But that really doesn't set fullscreen mode...
o.o theres a special function for it?
I tried
C++ Syntax (Toggle Plain Text)
//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?
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.

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
"I became very sensitive to what will happen to all this and all of us." -Two geniuses named Albert
tanx =D
i dont have idea of what are those parameters, but it works
C++ Syntax (Toggle Plain Text)
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
![]() |
Other Threads in the C++ Forum
- Previous Thread: Linked List - Need help deleting!
- Next Thread: c++ program to find the product of two array of integers-clear errors?
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator getline givemetehcodez graph iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






