No, Salem. Thanks for the link, I'm reading it at the moment. I'm basically using the code as the adrian guy put it up. I'll post my functions in a few mins when I finish them.
EDIT - Here are the functions -
Code:
Note, Error checking to come for these.
void ChangeScreenSize ( COORD NewSize )
{
HANDLE hOut = GetStdHandle( STD_OUTPUT_HANDLE );
SMALL_RECT DisplayArea = { 0, 0, 0, 0 };
CONSOLE_SCREEN_BUFFER_INFO SBInfo;
GetConsoleScreenBufferInfo( hOut, &SBInfo );
DisplayArea.Bottom = NewSize.Y;
DisplayArea.Right = NewSize.X;
SetConsoleWindowInfo( hOut, true, &DisplayArea );
}
void ChangeBuffSize ( COORD NewSize )
{
SetConsoleScreenBufferSize( GetStdHandle( STD_OUTPUT_HANDLE ), NewSize );
}
If I use them individually, they are ok, but in conjunction with eachother they don't seem to work. It seems ChangeBuffSize only increases, and ChangeScreenSize only decreases...