A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



SetLayout

The SetLayout function changes the layout of a device context (DC).

VB4-32,5,6
Declare Function SetLayout Lib "gdi32" (ByVal hdc As Long, ByVal dwLayout As Long) As Long

Operating Systems Supported
Requires Windows 2000 or later; Requires Windows 98 or later

Library
Gdi32

Parameter Information
- hdc
[in] Handle to the device context.

- dwLayout
[in] Specifies the device context layout. This parameter can be one or more of the following values.
LAYOUT_BITMAPORIENTATIONPRESERVED
Disables any reflection during BitBlt and StretchBlt operations.
LAYOUT_RTL
Sets the default horizontal layout to be right to left.

Return Values
If the function succeeds, it returns the previous layout of the device context.

If the function fails, it returns GDI_ERROR. To get extended error information, call GetLastError.

Last update: 07 April 2006