The PANE record describes the number and position of unfrozen panes in a window.
Record Data
Offset |
Name |
Size |
Contents |
4 |
x |
2 |
Horizontal position of the split; 0 (zero) if none |
6 |
y |
2 |
Vertical position of the split; 0 (zero) if none |
8 |
rwTop |
2 |
Top row visible in the bottom pane |
10 |
colLeft |
2 |
Leftmost column visible in the right pane |
12 |
pnnAct |
2 |
Pane number of the active pane |
The x and y fields contain the position of the vertical and horizontal splits, respectively, in units of 1/20th of a point. Either of these fields can be 0 (zero), indicating that the window is not split in the corresponding direction.
For a window with a horizontal split, the rwTop field is the topmost row visible in the bottom pane or panes. For a window with a vertical split, the colLeft field contains the leftmost column visible in the right pane or panes.
The pnnAct field indicates which pane is the active pane. The pnnAct field contains one of the following values:
0 = lower right
1 = upper right
2 = lower left
3 = upper left
If the window has frozen panes, as specified in the WINDOW2 record, x and y have special meaning. If there is a vertical split, x contains the number of columns visible in the top pane. If there is a horizontal split, y contains the number of rows visible in the left pane. Both types of splits can be present in a window, as in unfrozen panes.