2.3.11.17 EMR_SETLAYOUT Record

The EMR_SETLAYOUT record specifies the order in which text and graphics are drawn.<88>


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

Type

Size

LayoutMode

Type (4 bytes): An unsigned integer that identifies this record type as EMR_SETLAYOUT. This value is 0x00000073.

Size (4 bytes): An unsigned integer that specifies the size of this record in bytes. This value is 0x0000000C.

LayoutMode (4 bytes): An unsigned integer that specifies the layout mode as follows:

Value

Meaning

LAYOUT_LTR

0x00000000

Sets the default horizontal layout to be left-to-right. This is the default mode for English and European locales.

LAYOUT_RTL

0x00000001

Sets the default horizontal layout to be right-to-left. This mode is required for some languages, including Arabic and Hebrew.

LAYOUT_BITMAPORIENTATIONPRESERVED

0x00000008

Disables mirroring of bitmaps that are drawn by bitmap records (section 2.3.1) when the layout mode is right-to-left.

See section 2.3.11 for more state record types.