SBM_SETSCROLLBAR (1.2)
◄Message Group► ◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINSCROLLBARS
SBM_SETSCROLLBAR
mp1 = MPFROMSHORT((SHORT) sPos); /* position */
mp2 = MPFROM2SHORT((SHORT) sFirst, (SHORT) sLast); /* range */
An application sends an SBM_SETSCROLLBAR message to set the range of a
scroll-bar window and the position of the slider within that scroll bar.
Parameter Description
────────────────────────────────────────────────────────────────────────────
sPos Low word of mp1. Specifies the slider position.
sFirst Low word of mp2. Specifies the first possible position of the
slider. The range is 0 to 32768.
sLast High word of mp2. Specifies the last possible position of the
slider. The range is 0 to 32768.
Return Value
The return value is always TRUE.
See Also
SBM_QUERYPOS, SBM_QUERYRANGE, SBM_SETPOS
♦