An application sends the SBM_SETPOS message to a scroll bar control to set the position of the scroll box (thumb) and, if requested, redraw the scroll bar to reflect the new position of the scroll box.
SBM_SETPOS wParam = (WPARAM) nPos; // new position of scroll box lParam = (LPARAM) (BOOL) fRedraw; // redraw flag
If the position of the scroll box changed, the return value is the previous position of the scroll box; otherwise, it is zero.
If the scroll bar control is redrawn by a subsequent call to another function, setting the fRedraw parameter to FALSE is useful.
SBM_GETPOS, SBM_GETRANGE, SBM_SETRANGE, SBM_SETRANGEREDRAW
|file: /Techref/os/win/api/win32/mess/src/msg15_26.htm, 1KB, , updated: 2000/4/7 12:20, local time: 2022/8/17 22:08,
|©2022 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.sxlist.com/techref/os/win/api/win32/mess/src/msg15_26.htm"> SBM_SETPOS</A>
|Did you find what you needed?|
Welcome to sxlist.com!
& kind contributors
just like you!
Please don't rip/copy
Copies of the site on CD
are available at minimal cost.
Welcome to www.sxlist.com!