◄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 ♦