<Return[F]><Top>

FlatSB_GetScrollRange

Declare Function Api_FlatSB_GetScrollRange& Lib "Comctl32" Alias "FlatSB_GetScrollRange" (ByVal hWnd&, ByVal code&, ByVal lpMinPos&, ByVal lpMaxPos&)

Declare Function FlatSB_GetScrollRange Lib "Comctl32" (ByVal hWnd As Long, ByVal code As Long, ByVal lpMinPos As Long, ByVal lpMaxPos 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.
code
    The scroll bar type. It can be one of the following values:

    値             

意味                                                                          

    SB_HORZ

Retrieves the scroll range of the horizontal scroll bar.

    SB_VERT

Retrieves the scroll range of the vertical scroll bar.

lpMinPos
    A pointer to an INT value that receives the minimum scroll range value.
lpMaxPos
    A pointer to an INT value that receives the maximum scroll range value.

戻り値

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