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>getscrollpos</b> get current position of scroll bar indicator http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetScrollPos       Get Current Position of Scroll Bar Indicator

int ScrollPos(hWnd, nBar)
HWND hWnd;
int nBar;

                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 SetScrollPos SetScrollRange

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