Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>getscrollpos()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetScrollPos()
Return the scroll box position
------------------------------------------------------------------------------

Syntax
GetScrollPos( <hWnd>, <nBar> )   -->   nPos

Arguments
<hWnd> is the handle to the window with the scroll bar, or the
handle to an actual scroll bar.

<nBar> is an integer which identifies the scroll bar.  (One of
the SB_* values defined in WINDOWS.CH.)

Returns
The position is returned as a numeric value.  If an error is
detected, zero (0) is returned.

Description
This function can be used to find the position of the scroll
box (also called a "thumb") within a scroll bar.  The <nBar>
parameter identifies the scroll bar as follows:

     <nBar>         means

     SB_CTL         Gets the position within the scroll bar <hWnd>

     SB_HORZ        Gets the position of the window's horizontal scroll bar

     SB_VERT        Gets the position of the window's vertical scroll bar

Example
nValue = GetScrollPos( hWnd, SB_HORZ )


See Also: SetScrollPos() SetScrollRange()

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