Using SetConsoleDisplayMode()

Heh I love my question asking. No matter what library I include I can't find what I need for this function. Included everything microsoft is asking for. Yet it still has no idea what it is?

1
2
3
4
5
void SetWindowSize(int x, int y)
{
	COORD ScreenSize = {x, y};
	SetConsoleDisplayMode(GetStdHandle(STD_OUTPUT_HANDLE),2 , ScreenSize);
}
Hmm changed it to:

1
2
3
4
5
6
void SetWindowSize(int bottem, int left, int top, int right)
{
	SMALL_RECT ScreenSize = {bottem, left, top, right};
	
	SetConsoleWindowInfo(GetStdHandle(STD_OUTPUT_HANDLE) ,true , &ScreenSize);
}


Should I be making only 2 ints though, etc make one that does, left and right and top and bottom?
If I understand the documentation correctly, this doesn't set the size of the console (x columns by y rows), it just sets which section of the console buffer, aka history, will be displayed on the console window.
I could be wrong, though.
Topic archived. No new replies allowed.