sg552
sg552

Reputation: 1543

Adding scrollbar to console

How to add scroll bar to console using system function?

I'm using system("MODE 100,50"); to set customize console window size.

Upvotes: 3

Views: 2157

Answers (1)

Maximus
Maximus

Reputation: 10845

What can be simplier?

COORD newSize = {100,9999};
SetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE), newSize);

newSize must be larger than your current visible window area

Upvotes: 2

Related Questions