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_SETTHUMBSIZE (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINSCROLLBARS
 
SBM_SETTHUMBSIZE
mp1 = MPFROM2SHORT((USHORT) cVisible, (USHORT) cTotal); /* items */
mp2 = 0L;                              /* not used, must be zero */
 
An application sends an SBM_SETTHUMBSIZE message to set the size of the
slider in the scroll bar.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
cVisible   Low word of mp1. Specifies the number of visible items.
 
cTotal     High word of mp1. Specifies the total number of items.
 
Return Value
 
The return value is always TRUE.
 
Comments
 
The SBM_SETTHUMBSIZE message is usually sent when the scroll bar is
initialized or when the client window changes size. MS OS/2 uses the two
parameters to calculate the percentage of data visible and thus the
percentage of the scroll bar that the slider should occupy.
 
See Also
 
SBM_QUERYPOS, SBM_QUERYRANGE, SBM_SETPOS