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>setscrollpos()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SetScrollPos()
Set the scroll box position
------------------------------------------------------------------------------

Syntax
SetScrollPos( <hWnd>, <nBar>, <nPos>, <lRepaint> )   -->   nOldPos

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

<nPos> is an integer which specifies the new position.  It
must be within the scrolling range (set by the SetScrollRange()
function).

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

Returns
The old position is returned as a numeric value.

Description
This function can be used to set 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         Sets the position within the scroll bar <hWnd>

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

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

Example
SetScrollPos( hWnd, SB_HORZ, 50, .T. )


See Also: GetScrollPos() SetScrollRange()

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