Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
FlatSB_SetScrollProp function (commctrl.h)
Sets the properties for a flat scroll bar.
Syntax
BOOL FlatSB_SetScrollProp(
HWND unnamedParam1,
UINT index,
INT_PTR newValue,
BOOL unnamedParam4
);
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.
index
Type: UINT
Determines what newValue represents and which property is being set. This parameter can be one of the following values:
| Value | Meaning |
|---|---|
|
newValue is an INT_PTR value that represents the width, in pixels, of the direction buttons in a horizontal scroll bar. |
|
newValue is an INT_PTR value that represents the width, in pixels, of the thumb in a horizontal scroll bar. |
|
newValue is an INT_PTR value that represents the width, in pixels, of the vertical scroll bar. |
|
newValue is an INT_PTR value that represents the height, in pixels, of the horizontal scroll bar. |
|
newValue is an INT_PTR value that represents the height, in pixels, of the direction buttons in a vertical scroll bar. |
|
newValue is an INT_PTR value that represents the height, in pixels, of the thumb in a vertical scroll bar. |
|
newValue is a COLORREF value that represents the background color in a horizontal scroll bar. |
|
newValue is one of the following values that changes the visual effects for the horizontal scroll bar.
|
|
newValue is an HPALETTE value that represents the new palette that the scroll bar should use when drawing. |
|
newValue is a COLORREF value that represents the background color in a vertical scroll bar. |
|
newValue is one of the following values that changes the visual effects for the vertical scroll bar:
|
newValue
Type: INT_PTR
A new value to set. This parameter depends on the flag passed in index.
unnamedParam4
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: BOOL
Returns nonzero if successful, or zero otherwise.
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) |
Feedback
Was this page helpful?
