I have created a borderless (and scrollbox-less) console application, but I have found that if the user has a touchpad and tries to scroll the console with it, he is able to do so. (Can’t be done with a regular mouse, apparently.)
I’d like to disable this feature.
First I thought about creating some kind of message handling system for a my console, just like in Win32 GUI programming, but that seemed unnecessarily difficult.
I also thought about changing the buffer size, but I have no idea how to do that (I looked into SetConsoleScreenBufferSize but couldn’t do anything useful with it).
Any suggestions?
Problem fixed..
I had accidentally used
SetConsoleScreenBufferSize(hWnd, dwSize);instead ofSetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE), dwSize);EDIT: There is a small bug still.
Even when I set the
Console Screen Buffer Sizeto as tiny as it can be, the user can still scroll a few steps up (to scroll back down, the user needs to be scrolling really fast, for some reason) I have no idea what might be causing this, so if you have any ideas pelase let me know.