FlatSB_SetScrollPosFlatSB_SetScrollPos*
*Contents  *Index  *Topic Contents
*Previous Topic: FlatSB_SetScrollInfo
*Next Topic: FlatSB_SetScrollProp

FlatSB_SetScrollPos


int FlatSB_SetScrollPos(
    HWND hwnd, 
    int code,
    int nPos,
    BOOL fRedraw
);

Sets the current position of the thumb in a flat scroll bar. If flat scroll bars are not initialized for the window, this function calls the standard SetScrollPos 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 thumb position of the horizontal scroll bar.
SB_VERT Sets the thumb position of the vertical scroll bar.
nPos
Parameter that specifies the new thumb position.
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.