WINDOW1: Window Information (3Dh)

The WINDOW1 record contains workbook-level window attributes. The xWn and yWn fields contain the location of the window in units of 1/20th of a point, relative to the upper-left corner of the Microsoft Excel window client area. The dxWn and dyWn fields contain the window size, also in units of 1/20th of a point.

Record Data

Offset

Name

Size

Contents

4

xWn

2

Horizontal position of the window.

6

yWn

2

Vertical position of the window.

8

dxWn

2

Width of the window.

10

dyWn

2

Height of the window.

12

grbit

2

Option flags.

14

itabCur

2

Index of the selected workbook tab (0-based).

16

itabFirst

2

Index of the first displayed workbook tab
(0-based).

18

ctabSel

2

Number of workbook tabs that are selected.

20

wTabRatio

2

Ratio of the width of the workbook tabs to the width of the horizontal scroll bar; to obtain the ratio, convert to decimal and then divide by 1000.


The grbit field contains the option flags listed in the following table.

Offset

Bits

Mask

Name

Contents

0

0

01h

fHidden

= 1 if the window is hidden

1

02h

fIconic

= 1 if the window is currently displayed as an icon

2

04h

(Reserved)

3

08h

fDspHScroll

= 1 if the horizontal scroll bar is displayed

4

10h

fDspVScroll

= 1 if the vertical scroll bar is displayed

5

20h

fBotAdornment

= 1 if the workbook tabs are displayed

7 – 6

C0h

(Reserved)

1

7 – 0

FFh

(Reserved)