<Return[F]><Top>

FlatSB_SetScrollInfo

Declare Function Api_FlatSB_SetScrollInfo& Lib "Comctl32" Alias "FlatSB_SetScrollInfo" (ByVal hWnd&, ByVal code&, lpsi As Any, ByVal fRedraw&)

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

    値               

意味                                                                   

    SB_HORZ

Sets the information for the horizontal scroll bar.

    SB_VERT

Sets the information for the vertical scroll bar.

lpsi
    A pointer to a SCROLLINFO structure that contains the new information for the specified scroll bar. The cbSize and fMask

    members of the structure must be filled in prior to calling FlatSB_SetScrollInfo. The fMask member specifies which members of

    the structure contain valid information and can be any combination of the following values:

    値                                     

意味                                                                                                                                   

    SIF_DISABLENOSCROLL

Disables the scroll bar if the new information would cause the scroll bar to be removed.

    SIF_PAGE

 

Sets the page information for the flat scroll bar. The nPage member of the SCROLLINFO structure

must contain the new page value.

    SIF_POS

 

Sets the position information for the flat scroll bar. The nPos member of the SCROLLINFO

structure must contain the new position value.

    SIF_RANGE

 

Sets the range information for the flat scroll bar. The nMin and nMax members of the

SCROLLINFO structure must contain the new range values.

    SIF_ALL

A combination of SIF_PAGE, SIF_POS, and SIF_RANGE.


戻り値

    現在の指定した位置が返る。