GetScreenOrientation

Description

Gets the screen orientation of a device or emulator capable of screen rotation.

Syntax

Integer GetScreenOrientation ( )

Returns

The return values can be one of the following or a negative number for failure:

Usage

This function is supported on devices using the Windows Mobile 2003 SE or later platform.

Examples

Example 1

The following lines place the value for the current screen orientation in the lb_result list box:

integer iRet

iRet = GetScreenOrientation()

lb_result.AddItem( "Current Orientation: " &

   + string(iRet) )

See also