Tuesday, July 28, 2009

C++ full screen DOS?

I'm making a DOS App in Dev-C++ and i want to know how to open the app in full screen mode With Out pressing Alt +Tab or going to the DOS properties box.





Dose anyone know a code to put in to the App to make it open in full screen?

C++ full screen DOS?
#define _WIN32_WINNT 0x0500


#include %26lt;windows.h%26gt;


#include %26lt;Wincon.h%26gt;


#include %26lt;string%26gt;


#include %26lt;algorithm%26gt;


#include %26lt;iostream%26gt;


#include %26lt;iomanip%26gt;


#include %26lt;algorithm%26gt;


#include %26lt;cctype%26gt;


using namespace std;





int main()


{


HWND hWnd = GetConsoleWindow();


ShowWindow(hWnd,SW_SHOWMAXIMIZED);





string str = "UPPER-CASE";


transform(str.begin(),str.end(),str.b...


cout %26lt;%26lt; str %26lt;%26lt; endl;


cin.ignore();


return 0;


}





try that. It works on Win XP, doesn't open as big as full screen, just as large as the app window can get.

flowers gifts

No comments:

Post a Comment