msgs12.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SBM_SETPOS (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINSCROLLBARS
 
SBM_SETPOS
mp1 = MPFROMSHORT((SHORT) sPos);   /* slider position        */
mp2 = 0L;                          /* not used, must be zero */
 
An application sends an SBM_SETPOS message to set the slider position in a
scroll-bar window. If the position specified is outside the valid range of
slider positions, the slider is moved to the nearest valid position.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
sPos       Low word of mp1. Specifies the slider position.
 
Return Value
 
The return value is always TRUE.
 
See Also
 
SBM_QUERYPOS, SBM_QUERYRANGE, SBM_SETSCROLLBAR