SBM_GETSCROLLINFO
An
application sends the SBM_GETSCROLLINFO message to retrieve the parameters of a
scroll bar.
SBM_GETSCROLLINFO
wParam = 0; // not used, must
be zero
lParam = (LPARAM) (LPSCROLLINFO) lpsi; // scroll bar parameters
Parameters
lpsi
Value of lParam.
Points to a SCROLLINFO
structure whose fMask member, when the message is sent, specifies the
scroll bar parameters to retrieve. Before returning, the message copies the
specified parameters to the appropriate members of the structure.
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 |
Copies the
scroll page to the nPage member of the SCROLLINFO structure
pointed to by lpsi. |
|
SIF_POS |
Copies the
scroll position to the nPos member of the SCROLLINFO structure pointed to by lpsi. |
|
SIF_RANGE |
Copies the
scroll range to the nMin and nMax members of the SCROLLINFO
structure pointed to by lpsi. |
Return Values
If the
message retrieved any values, the return value is TRUE; otherwise, it is FALSE.
See Also