### Border Code for Windows Word 1.0 (BRC10)

b10 | b16 | field | type | size | bitfield | comments
0 | 0 | dxpLine2Width | short | :3 | 0007 | width of second line of border in pixels
|  | dxpSpaceBetween | short | :3 | 0038 | distance to maintain between both lines of border in pixels
|  | dxpLine1Width | short | :3 | 01C0 | width of first border line in pixels
|  | dxpSpace | short | :5 | 3E00 | width of space to maintain between border and text within border. Must be 0 when BRC is a substructure of the TC.
|  | fShadow | short | :1 | 4000 | when 1, border is drawn with shadow. Must be 0 when BRC10 is a substructure of the TC.
|  | fSpare | short | :1 | 8000 | reserved

The seven types of border lines that Windows Word 1.0 supports are coded with different sets of values for dxpLine1Width, dxpSpaceBetween, and dxpLine2 Width.

The border lines and their brc10 settings follow:

line type | dxpLine1Width | dxpSpaceBetween | dxpLine2Width
no border | 0 | 0 | 0
single line border | 1 | 0 | 0
two single line border | 1 | 1 | 1
fat solid border | 4 | 0 | 0
thick solid border | 2 | 0 | 0
dotted border | 6 (special value meaning dotted line) | 0 | 0
hairline border | 7(special value meaning hairline) | 0 | 0

When the no border settings are stored in the BRC, brc.fShadow and brc.dxpSpace should be set to 0.

cbBRC10 (count of bytes of BRC10) is 2.

© 1998 Microsoft Corporation. All rights reserved. Terms of use