2.2.2.4.10.1.14 OpaqueRect
The OpaqueRect packet contains an opaque rectangle.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
pControlFlags |
OrderType (optional) |
FieldBytes |
Bounds (variable) |
||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
nLeftRect (optional) |
nTopRect (optional) |
||||||||||||||||||||||||||||||
|
nRightRect (optional) |
nBottomRect (optional) |
||||||||||||||||||||||||||||||
|
ForeColor (optional) |
|||||||||||||||||||||||||||||||
pControlFlags (1 byte): MUST be set to the value OE2_CF_STANDARD_ENC from the OE2 Control Flags enumeration. If the order differs in type from the last order that was sent, this field contains the bitwise AND of the value OE2_CF_TYPE_CHANGE. If the bounding rectangle has changed since the last order of the same type, this field contains the bitwise AND of the value OE2_CF_BOUNDS. If the coordinates of the bounding rectangle are specified as deltas from the last bounding rectangle that was used, this field contains the bitwise AND of the value OE2_CF_DELTACOORDS.
OrderType (1 byte): If the order differs in type from the last, this field MUST contain the value OE2_OPAQUERECT_ORDER from the Order Types enumeration. If the order is the same type as the last, this field is not present.
FieldBytes (1 byte): An 8-bit field, with each bit indicating which of the fields that follow Bounds is present. A bit set to 1 indicates that the field is present and its value has changed since the same order type was last sent.
-
0
1
2
3
4
5
6
7A
B
C
D
E
0
0
0
-
Where the bits are defined as:
-
Value
Description
A
The nLeftRect value is present.
B
The nTopRect value is present.
C
The nRightRect value is present.
D
The nBottomRect value is present.
E
The ForeColor value is present.
-
The bits that are marked with 0 MUST be set to zero.
Bounds (variable): A byte array of a BoundsData structure. This field is present only if pControlFlags contains the bitwise AND of the value OE2_CF_BOUNDS from the OE2 Control Flags enumeration.
nLeftRect (2 bytes): This value MUST be present if the corresponding bit from the FieldBytes field is set. This represents the window's x-coordinate of the left edge of the rectangle.
nTopRect (2 bytes): This value MUST be present if the corresponding bit from the FieldBytes field is set. This represents the window's y-coordinate of the top edge of the rectangle.
nRightRect (2 bytes): This value MUST be present if the corresponding bit from the FieldBytes field is set. This represents the window's x-coordinate of the right edge of the rectangle.
nBottomRect (2 bytes): This value MUST be present if the corresponding bit from the FieldBytes field is set. This represents the window's y-coordinate of the bottom edge of the rectangle.
ForeColor (3 bytes): This value MUST be present if the corresponding bit from the FieldBytes field is set. This represents the color of the rectangle that is specified by a byte array of a TSHR_COLOR structure.