Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>setscrollpos</b> set current position of scroll bar indicator http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SetScrollPos       Set Current Position of Scroll Bar Indicator

int ScrollPos(hWnd, nBar, nPos, bRedraw)
HWND hWnd;
int nBar;
int nPos;
BOOL bRedraw; /* YES to redraw scroll bar */

                nBar
        |----------------------------------------------------|
        | SB_CTL   hWnd is scroll bar control                |
        | SB_HORZ  hWnd is window with horizontal scroll bar |
        | SB_VERT  hWnd is window with vertical scroll bar   |
        +----------------------------------------------------+

Returns:    Current scroll bar indicator position.

See Also: GetScrollRange GetScrollPos SetScrollRange

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson