FlatSB_SetScrollRangeFlatSB_SetScrollRange*
*Contents  *Index  *Topic Contents
*Previous Topic: FlatSB_SetScrollProp
*Next Topic: FlatSB_ShowScrollBar

FlatSB_SetScrollRange


int FlatSB_SetScrollRange(
    HWND hwnd,
    int code,
    int nMinPos,
    int nMaxPos,
    BOOL fRedraw
);

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

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 Sets the scroll range of the horizontal scroll bar.
SB_VERT Sets the scroll range of the vertical scroll bar.
nMinPos
Parameter that specifies the new minimum scroll range value.
nMaxPos
Parameter that specifies the new maximum scroll range value.
fRedraw
Parameter that specifies whether the scroll bar should be redrawn immediately to reflect the change. If this parameter is TRUE, the scroll bar is redrawn; if it is FALSE, the scroll bar is not redrawn.

Version 4.71


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.