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>getscrollrange</b> get current max. & min positions http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetScrollRange       Get Current Max. & Min Positions

void GetScrollRange(hWnd, nBar, lpMinPos, lpMaxPos)
HWND hWnd;
int nBar; /* See below */
LPINT lpMinPos;
LPINT lpMaxPos;


                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:    Min and Max positions in lpMinPos and lpMaxPos.

See Also: GetScrollPos SetScrollPos SetScrollRange

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