<Return[F]><Top>

FlatSB_SetScrollProp

Declare Function Api_FlatSB_SetScrollProp& Lib "Comctl32" Alias "FlatSB_SetScrollProp" (ByVal hWnd&, ByVal index&, ByVal newValue&, ByVal fRedraw&)

Declare Function FlatSB_SetScrollProp Lib "Comctl32" (ByVal hWnd As Long, ByVal index As Long, ByVal newValue As Long, ByVal fRedraw As Long) As Long

フラットスクロールバーの位置を設定する。

パラメータ
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
    Determines what newValue represents and which property is being set. This parameter can be one of the following values:

    値                                       

意味                                                                                                                              

    WSB_PROP_CXHSCROLL

 

newValue is an INT_PTR value that represents the width, in pixels, of the direction buttons in a

horizontal scroll bar.

    WSB_PROP_CXHTHUMB

 

newValue is an INT_PTR value that represents the width, in pixels, of the thumb in a horizontal

scroll bar.

    WSB_PROP_CXVSCROLL

newValue is an INT_PTR value that represents the width, in pixels, of the vertical scroll bar.

    WSB_PROP_CYHSCROLL

newValue is an INT_PTR value that represents the height, in pixels, of the horizontal scroll bar.

    WSB_PROP_CYVSCROLL

 

newValue is an INT_PTR value that represents the height, in pixels, of the direction buttons in a

vertical scroll bar.

    WSB_PROP_CYVTHUMB

 

newValue is an INT_PTR value that represents the height, in pixels, of the thumb in a vertical

scroll bar.

    WSB_PROP_HBKGCOLOR

newValue is a COLORREF value that represents the background color in a horizontal scroll bar.

    WSB_PROP_HSTYLE

newValue is one of the following values that changes the visual effects for the horizontal scroll bar.

        FSB_ENCARTA_MODE

 

A standard flat scroll bar is displayed. When the mouse moves over a direction button or the thumb,

that portion of the scroll bar will be displayed in 3-D.

        FSB_FLAT_MODE

 

A standard flat scroll bar is displayed. When the mouse moves over a direction button or the thumb,

that portion of the scroll bar will be displayed in inverted colors.

        FSB_REGULAR_MODE

A normal, nonflat scroll bar is displayed. No special visual effects will be applied.

    WSB_PROP_PALETTE

 

newValue is an HPALETTE value that represents the new palette that the scroll bar should use

when drawing.

    WSB_PROP_VBKGCOLOR

newValue is a COLORREF value that represents the background color in a vertical scroll bar.

    WSB_PROP_VSTYLE

newValue is one of the following values that changes the visual effects for the vertical scroll bar:

        FSB_ENCARTA_MODE

 

A standard flat scroll bar is displayed. When the mouse moves over a direction button or the thumb,

that portion of the scroll bar will be displayed in 3-D.

        FSB_FLAT_MODE

 

A standard flat scroll bar is displayed. When the mouse moves over a direction button or the thumb,

that portion of the scroll bar will be displayed in inverted colors.

        FSB_REGULAR_MODE

A normal, nonflat scroll bar is displayed. No special visual effects will be applied.

newValue
    A new value to set. This parameter depends on the flag passed in index.
fRedraw
    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.
 

戻り値

    関数が成功すると、0 以外が返る。それ以外は 0 が返る。