I'm looking for an alternative to using 'system ( "mode con:cols=50 lines=30" );' (those numbers don't have to be static, obviously), (looking for an alternative against the possibility that someone hacks into my computer, and makes a mode.bat file which does bad bad things to my computer!), to set the size (buffer and regular), of my console screen, so I turned to adrianxw, of course, and got lots of examples from here. When I saw the one about setting the screen buffer size, I thought it was great, but it says that the SetConsoleScreenBufferSize() function can't make the window any smaller, which is one of the possibilities I would like to cover. Can anyone suggest how I may go about making it smaller. Is there another function I should look into?
I've tried searching Google (albeit quickly), and anything I saw regarding the above problem was a warning about the function, and error checking - ie: if ( var < 0 ) cout<< "Cannot decrease size"; else blah blah ...
Ta very much.