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

SCROLLBARINFO

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

描述

 

这个SCROLLBARINFO包含滚动条信息的结构.

 

FreeBASIC 语法

 

TYPE SCROLLBARINFO

  cbSize        AS DWORD

  rcScrollBar   AS RECT

  dxyLineButton AS LONG

  xyThumbTop    AS LONG

  xyThumbBottom AS LONG

  reserved      AS LONG

  rgstate (0 to (5 + 1) - 1)) AS DWORD

END TYPE

 

成员

 

cbSize

 

Specifies the size, in bytes, of the structure. Before calling the GetScrollBarInfo function, set cbSize to SIZEOF(SCROLLBARINFO).

 

rcScrollBar

 

Coordinates of the scroll bar as specified in a RECT structure.

 

dxyLineButton

 

Height or width of the thumb.

 

xyThumbTop

 

Position of the top or left of the thumb.

 

xyThumbBottom

 

Position of the bottom or right of the thumb.

 

reserved

 

Reserved.

 

rgstate

 

An array of DWORD elements. Each element indicates the state of a scroll bar component. The following values show the scroll bar component that corresponds to each array index.

 

Index

Scroll bar component

滚动条本身.

顶部或右箭头按钮.

页面上或页右区域.

滚动盒(拇指).

页面向下或页左区域.

底部或左箭头按钮.

 

The DWORD element for each scroll bar component can include a combination of the following bit flags.

 

STATE_SYSTEM_INVISIBLE

For the scroll bar itself, indicates the specified vertical or horizontal scroll bar does not exist. For the page up or page down regions, indicates the thumb is positioned such that the region does not exist.

STATE_SYSTEM_OFFSCREEN

For the scroll bar itself, indicates the window is sized such that the specified vertical or horizontal scroll bar is not currently displayed.

STATE_SYSTEM_PRESSED

The arrow button or page region is pressed.

STATE_SYSTEM_UNAVAILABLE

The component is disabled.

 

引用文件

 

WinUser.bi