An application sends the SBM_GETSCROLLINFO message to set the parameters of a scroll bar.
SBM_SETSCROLLINFO
wParam = (WPARAM) fRedraw; // redraw flag
lParam = (LPARAM) (LPSCROLLINFO) lpsi; // scroll bar parameters
Parameters
fRedraw
Value of wParam. Specifies whether the scroll bar is redrawn to reflect the new scroll box position. If this parameter is TRUE, the scroll bar is redrawn. If it is FALSE, the scroll bar is not redrawn.
lpsi
Value of lParam. Points to a SCROLLINFO structure whose fMask member, when the message is sent, specifies the scroll bar parameters to set.
The fMask member can be a combination of the following values:
Value | Meaning |
SIF_ALL | Combination of SIF_PAGE, SIF_POS, and SIF_RANGE. |
SIF_PAGE | Sets the scroll page to the value specified in the nPage member of the SCROLLINFO structure pointed to by lpsi. |
SIF_POS | Sets the scroll position to the value specified in the nPos member of the SCROLLINFO structure pointed to by lpsi. |
SIF_RANGE | Sets the scroll range to the value specified in the nMin and nMax members of the SCROLLINFO structure pointed to by lpsi. |
Return Values
The return value is the current position of the scroll box.
See Also