   Removing scrollbars in a console application
  Hello;I am working on a small console based game using Win32 console functions.As you may know the default size of the console apps is 80x25 well.. characters? In my case I need the width to be something near to 40.But doing that using the API function "SetConsoleScreenBufferSize" doesn't seem to work.In fact,this function fails when a screen buffer size is given smaller than 80.Therefore,I make a screen buffer which has the size 80x50 and use the "SetConsoleWindowInfo" function to give the application the desired size,by modifying its window,instead of the screen buffer.This works,but when the window is smaller than the screen buffer,scroll bars appear on the edges by default.I totaly hate this behavior because the actual thing should happen in the 40x50 sized part which the window shows initially.If the user scrolls to right for example,she/he will see an useless,annoying,black area..I even gave to the "FindWindow" function the title name of my program and acquired the HWND of my window,which is an unusual thing to do in a console app.(Win32 doesn't have any direct method for obtaining the console window handles.)I call "GetScrollInfo" using the HWND I obtain,but interestingly the function doesn't return anything altough a horizontal scrollbar just sits under the window and annoys me..My google searches weren't helpful,too.So I need some advice for what to do..Thanks in advance..   
  SetConsoleScreenBufferSize() won't reduce the buffer size to be smaller than the window size. So in order to shrink the buffer you need to first shrink the window with SetConsoleWindowInfo() and then call SetConsoleScreenBufferSize() to shrink the screen buffer.   ;  And this has just solved my problem,it seems..Thank you very much.   