Ok, so I am trying to resize my console window so it can fit my program better. I found this website: http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles6.html which seemed to work rather well. I spent some time trying to understand what each function did and once I thought I had a handle on it I tried utilizing it for myself. For whatever reason, my console does not resize. When I compiled the code that this website provided it worked however nothing quite met my needs so I tried to adapt it. Can someone please look at my code and see what they think I am doing wrong?
1 2 3 4 5 6 7 8 9 10 11 12
void resize()
{
HANDLE thisProgram;
SMALL_RECT DisplayArea = {0,0,0,0};
thisProgram = GetStdHandle(STD_OUTPUT_HANDLE);
// This should set where the bottom of the console winow is but
// it doesn't seem to be working and I cannot figure out why.
DisplayArea.Bottom = 500;
SetConsoleWindowInfo(thisProgram, TRUE, &DisplayArea);
}