Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 function.
Syntax
int FlatSB_SetScrollPos(
HWND unnamedParam1,
int code,
int pos,
BOOL fRedraw
);
Parameters
unnamedParam1
Type: HWND
A handle to the window that contains the flat scroll bar. This window handle must have been passed previously in a call to InitializeFlatSB.
code
Type: int
The scroll bar type. It can be one of the following values:
Value | Meaning |
---|---|
|
Sets the thumb position of the horizontal scroll bar. |
|
Sets the thumb position of the vertical scroll bar. |
pos
Type: int
The new thumb position.
fRedraw
Type: BOOL
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.
Return value
Type: int
Returns the previous position of the thumb in the specified flat scroll bar.
Remarks
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | commctrl.h |
Library | Comctl32.lib |
DLL | Comctl32.dll (version 4.71 or later) |