Re: [Dev-C++] run console program in full screen
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Scott <fre...@ve...> - 2005-12-07 02:22:35
|
>Methinks he really wants his program to force this. I've wanted to do >this before, but not found a way. I think it might be a request to >the OS (which means you're gonna most likely get into some evil MS >garbage before this is over, unless there's something I don't know >about...) Hehe, sorry.... My bad.... I spent 2 hours yesterday, trying to copy and paste from the console window to notepad, where it just failed like 99% of the time.... 2 hours later i remembered you can select Edit Mode in the console properties.. I did a google search i found this sample C from Microsoft... I'm guessing if i can do it in the console window, Windows must have a closely followed or similar command it uses to do it. Heres a link, anyway... I hope it helps.... (doubt it will) :) http://www.cs.umu.se/kurser/TDBB09/VT01/console/size.c /********************************************************************* * FUNCTION: resizeConBufAndWindow(HANDLE hConsole, SHORT xSize, * * SHORT ySize) * * * * PURPOSE: resize both the console output buffer and the console * * window to the given x and y size parameters * * * * INPUT: the console output handle to resize, and the required x and * * y size to resize the buffer and window to. * * * * COMMENTS: Note that care must be taken to resize the correct item * * first; you cannot have a console buffer that is smaller * * than the console window. * *********************************************************************/ Cheers, Scott. |