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 11:20, local time: 2024/11/23 21:37,
18.188.119.67:LOG IN
|
©2024 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://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!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.