в Win32 Help функция
int SetScrollInfo(
HWND hwnd, // handle of window with scroll bar
int fnBar, // scroll bar flag
LPSCROLLINFO lpsi, // pointer to structure with scroll parameters
BOOL fRedraw // redraw flag
);
параметр lpsi -
Points to a SCROLLINFO structure whose fMask member, upon entry to the function, specifies the scroll bar parameters to set.
The fMask member can be a combination of the following values:
Value Meaning
SIF_DISABLENOSCROLL Disables the scroll bar instead of removing it, if the scroll bar's new parameters make the scroll bar unnecessary.