A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



FlatSB_GetScrollRange

Retrieves the scroll range for a flat scroll bar. If flat scroll bars are not initialized for the window, this function calls the standard GetScrollRange API.

VB4-32,5,6
Declare Function FlatSB_GetScrollRange Lib "comctl32" (ByVal hWnd As Long, ByVal code As Long, lpMinPos As Long, lpMaxPos As Long) As Boolean

Operating Systems Supported
Windows 2000 (or Windows NT 4.0 with Internet Explorer 4.0 or later); Windows 98 (or Windows 95 with Internet Explorer 4.0 or later)

Library
Comctl32

Parameter Information
- hwnd
Handle to the window that contains the flat scroll bar. This window handle must have been passed previously in a call to InitializeFlatSB.

- code
Parameter that specifies the scroll bar type. It can be one of the following values:
SB_HORZ
Retrieves the scroll range of the horizontal scroll bar.
SB_VERT
Retrieves the scroll range of the vertical scroll bar.

- lpMinPos
Address of an INT value that receives the minimum scroll range value.

- lpMaxPos
Address of an INT value that receives the maximum scroll range value.

Return Values
Returns nonzero if successful, or zero otherwise. If index is WSB_PROP_HSTYLE, the return is nonzero if InitializeFlatSB has been called for this window, or zero otherwise.

Last update: 07 April 2006