[RESOLVED] Largest Console window supported?
I am having issues with establishing the largest console window supported on my system. I have written this code:
Code:
void vmApp::GetMaxConsoleAppSize()
{
COORD maxConsoleSize;
maxConsoleSize = GetLargestConsoleWindowSize(m_hStdOut);
cout << "X = " << maxConsoleSize.X << " Y = " << maxConsoleSize.Y << endl;
m_nMaxAppWidth = maxConsoleSize.X;
m_nMaxAppHeight = maxConsoleSize.Y;
}
This reports X = 170 Y = 59 on my system. Issue here is that if I open a dos window (CMD), I am able to open the properties of that window and adjust the window size beyond what my method reports? How can I achieve this?
Re: Largest Console window supported?
Console, properties, layout, window size will allow you to set the width and height to any value you want. However, if you set a value for the window size larger than the values returned from GetLargestConsoleWindowSize(), then the window size is only adjusted to the largest console window size. If you save the values in properties and then go back to properties, layout you will see that the values have been set to the largest possible size and are not now the values you entered.
Re: Largest Console window supported?
My apologies, this method is returning the correct values. I was playing around with the screen buffer. Thanks for your reply.