导航:  Windows Controls Procedures > Scroll Bar Control > Structures >

SCROLLINFO

上一页返回章节概述下一页

描述

 

这个SCROLLINFO结构包含要设置的滚动条参数SetScrollInfo函数(或SBM_SETSCROLLINFO消息)或检索到GetScrollInfo函数(或SBM_GETSCROLLINFO消息).

 

FreeBASIC 语法

 

TYPE SCROLLINFO

  cbSize    AS UINT

  fMask     AS UINT

  nMin      AS LONG

  nMax      AS LONG

  nPage     AS UINT

  nPos      AS LONG

  nTrackPos AS LONG

END TYPE

 

成员

 

cbSize

 

Specifies the size, in bytes, of this structure. The caller must set this to SIZEOF(SCROLLINFO).

 

fMask

 

Specifies the scroll bar parameters to set or retrieve. This member can be a combination of the following values:

 

SIF_ALL

Combination of SIF_PAGE, SIF_POS, SIF_RANGE, and SIF_TRACKPOS.

SIF_DISABLENOSCROLL

This value is used only when setting a scroll bar's parameters. If the scroll bar's new parameters make the scroll bar unnecessary, disable the scroll bar instead of removing it.

SIF_PAGE

The nPage member contains the page size for a proportional scroll bar.

SIF_POS

The nPos member contains the scroll box position, which is not updated while the user drags the scroll box.

SIF_RANGE

The nMin and nMax members contain the minimum and maximum values for the scrolling range.

SIF_TRACKPOS

The nTrackPos member contains the current position of the scroll box while the user is dragging it.

 

nMin

 

Specifies the minimum scrolling position.

 

nMax

 

Specifies the maximum scrolling position.

 

nPage

 

Specifies the page size. A scroll bar uses this value to determine the appropriate size of the proportional scroll box.

 

nPos

 

Specifies the position of the scroll box.

 

nTrackPos

 

Specifies the immediate position of a scroll box that the user is dragging. An application can retrieve this value while processing the SB_THUMBTRACK request code. An application cannot set the immediate scroll position; the SetScrollInfo function ignores this member.

 

引用文件

 

WinUser.bi