2.2.7.2 TEXTPDU_ATTRIB

The TEXTPDU_ATTRIB structure defines the attributes of an MSTextPDU structure.

 typedef struct {
   DWORD attributesFlag;
   ColorRef textPenColor;
   ColorRef textFillColor;
   UINT textViewState;
   UINT textZOrder;
   POINT textAnchorPoint;
   LogFont textFont;
   UINT numberOfLines;
   VARIABLE_STRING textString;
 } TEXTPDU_ATTRIB,
  *PTEXTPDU_ATTRIB;

attributesFlag: The bitmap of flags that describe the changes of an edit operation.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

X

N

A

Z

V

F

P

Where the bits are defined as:

Value

Description

X

ChangedText

The text has changed.

N

ChangedFont

The font has changed.

A

ChangedAnchorPoint

The position of the text has changed.

Z

ChangedZOrder

The Z-order has changed.

V

ChangedViewState

The view state has changed.

F

ChangedFillColor

The fill color has changed.

P

ChangedPenColor

The pen color has changed.

The bits that are marked 0 MUST be zero.

textPenColor: A ColorRef structure ([MS-WMF] section 2.2.2.8) that describes the color of the text.

textFillColor: A ColorRef structure ([MS-WMF] section 2.2.2.8) that describes the fill color.

textViewState: If set to 0x0000, the text is not selected. Otherwise, the text is selected.

textZOrder: The Z-order value of the text.

textAnchorPoint: A POINT structure that describes the position of the text.

textFont: A LogFont structure ([MS-EMF] section 2.2.13) that describes the text font.

numberOfLines: The number of lines that are spanned by the text.

textString: A VARIABLE_STRING structure that contains the text to change.

One or more attributesFlag values in the TEXTPDU_ATTRIB field can be set that correspond to the textPenColor, textFillColor, textViewState, textZOrder, textAnchorPoint, textFont, numberOfLines, or textString fields. A field only contains valid data if its attribute flag is set.