Link to home
Start Free TrialLog in
Avatar of gaz1000
gaz1000

asked on

Increase console size window

How can I increase the console size window?
Avatar of mrwad99
mrwad99
Flag of United Kingdom of Great Britain and Northern Ireland image

Oops, sorry that should be SetConsoleWindowInfo (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/setconsolewindowinfo.asp) not SetConsoleScreenBufferSize.

// Eg create console window 40 columns wide by 40 rows tall

SMALL_RECT smallRect = {0, 0, 40, 40};
SetConsoleWindowInfo(hConsole, TRUE, &smallRect);
gaz1000, did you try my code ?
ASKER CERTIFIED SOLUTION
Avatar of mrwad99
mrwad99
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gaz1000
gaz1000

ASKER

Yes I did, cheers
Glad to help.