<Return[F]><Top>

FlatSB_GetScrollProp

Declare Function Api_FlatSB_GetScrollProp& Lib "Comctl32" Alias "FlatSB_GetScrollProp" (ByVal hWnd&, ByVal propIndex&, ByVal pValue&)

Declare Function FlatSB_GetScrollProp Lib "Comctl32" (ByVal hWnd As Long, ByVal propIndex As Long, ByVal pValue As Long) As Long

フラットスクロールバーの InitializeFlatSB が呼ばれたかどうかを取得する。

パラメータ
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
    The parameter that determines what pValue represents and which property is being retrieved. It can be one of the following

    values.

    値                                       

意味                                                                                                                                 

    WSB_PROP_CXHSCROLL

 

pValue is a pointer to an INT value that receives the width, in pixels, of the direction buttons in a

horizontal scroll bar.

    WSB_PROP_CXHTHUMB

 

pValue is a pointer to an INT value that receives the width, in pixels, of the thumb in a horizontal

scroll bar.

    WSB_PROP_CXVSCROLL

pValue a pointer to an INT value that receives the width, in pixels, of a vertical scroll bar.

    WSB_PROP_CYHSCROLL

pValue is a pointer to an INT value that receives the height, in pixels, of a horizontal scroll bar.

    WSB_PROP_CYVSCROLL

 

pValue is a pointer to an INT value that receives the height, in pixels, of the direction buttons in a

vertical scroll bar.

    WSB_PROP_CYVTHUMB

 

pValue is a pointer to an INT value that receives the height, in pixels, of the thumb in a vertical

scroll bar.

    WSB_PROP_HBKGCOLOR

 

pValue is a pointer to a COLORREF value that receives the background color in a horizontal scroll 

bar.

    WSB_PROP_HSTYLE

 

pValue is a pointer to an INT value that receives one of the following 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 is 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 is displayed in inverted colors.

        FSB_REGULAR_MODE

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

    WSB_PROP_PALETTE

 

pValue is a pointer to an HPALETTE value that receives the palette that a scroll bar uses when

drawing.

    WSB_PROP_VBKGCOLOR

 

pValue is a pointer to a COLORREF value that receives the background color in a vertical scroll

bar.

    WSB_PROP_VSTYLE

 

pValue is a pointer to an INT value that receives one of the following 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 is 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 is displayed in inverted colors.

    WSB_PROP_WINSTYLE

 

pValue is a pointer to an INT value that receives the WS_HSCROLL and WS_VSCROLL style

bits contained by the current window.

pValue
    A pointer to an int that receives the requested data. This parameter depends on the flag passed in index.

戻り値

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