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>setscrollrange()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SetScrollRange()
Set the minimum and maximum limits of a scroll bar
------------------------------------------------------------------------------

Syntax
SetScrollRange( <hWnd>, <nBar>, <nMin>, <nMax>,
                <lRepaint> )   -->   nil

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.)

<nMin>, <nMax> are integers which specify the new values for
the limits.

<lRepaint> is a logical, which should be TRUE (.T.) to re-draw
the scroll bar.

Returns
NIL

Description
This function can be used to set the limits of a scroll bar.
These limits are initially 0 to 100 for a standard scroll bar,
and both zero (0) for a scroll box control.  The <nBar>
parameter identifies the scroll bar as follows:

     <nBar>         means

     SB_CTL         Sets the limits of the scroll bar <hWnd>

     SB_HORZ        Sets the limits of the window's horizontal scroll bar

     SB_VERT        Sets the limits of the window's vertical scroll bar

Example
SetScrollRange( hWnd, SB_HORZ, 0, 200, .T. )


See Also: GetScrollPos() SetScrollPos()

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