Sets the screen orientation of a device or emulator capable of screen rotation.
Integer SetScreenOrientation ( iOrientation )
Argument |
Description |
---|---|
iOrientation |
A value corresponding to the screen orientation that you want to set. Values are:
|
Returns 0 for success or a negative number for failure.
This function is supported on the Windows Mobile 2003 Second Edition platform. However, not all devices using this platform support screen rotation.
The following lines rotate the current screen to a right-handed landscape orientation:
integer iRotate, iRet
iRotate = 1
iRet = SetScreenOrientation( iRotate )