IApplicationDesignModeSettings2::SetNativeDisplayOrientation method

Sets the orientation of the emulated display for the design mode window.

Syntax


HRESULT SetNativeDisplayOrientation(
  [in] NATIVE_DISPLAY_ORIENTATION nativeDisplayOrientation
);

Parameters

nativeDisplayOrientation [in]

Type: NATIVE_DISPLAY_ORIENTATION

The native orientation of the display to emulate.

NDO_LANDSCAPE (0)

Landscape orientation, with the display width greater than the height.

NDO_PORTRAIT (1)

Portrait orientation, with the display height greater than the width.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

Library

Twinapi.lib

DLL

Twinapi.dll

See also

IApplicationDesignModeSettings2

 

 

Show: