symbian如何禁止屏幕旋转
来源:互联网 发布:风暴大陆战盾进阶数据 编辑:程序博客网 时间:2024/05/16 10:28
symbian系统appui提供了函数: IMPORT_C void SetOrientationL(TAppUiOrientation aOrientation);可以设置手机的方向
enum TAppUiOrientation
{
/**
* Use the default device screen rotation of the product for this
* application. This is the default rotation setting for an
* application, and it should be used by nearly all applications.
*/
EAppUiOrientationUnspecified,
/**
* Use a portrait screen rotation for this application.
* This should only be used when an application specifically wants
* portrait rotation. The device will select an appropriate portrait
* rotation, if one is available.
*/
EAppUiOrientationPortrait,
/**
* Use a landscape screen rotation for this application.
* This should only be used when an application specifically wants
* landscape rotation. The device will select an appropriate landscape
* rotation, if one is available.
*/
EAppUiOrientationLandscape,
/**
* Use the normal device screen rotation for this application.
* Both portrait and landscape screen rotations are possible. The
* application rotation follows device screen rotation.
*/
EAppUiOrientationAutomatic
};
不过在设置方向前,必须保证手机全屏,
/**
* Set the application to be a full screen application.
* @param aIsFullScreen is @c ETrue if the application is a full screen
* application, @c EFlase otherwise.
*/
IMPORT_C void SetFullScreenApp(TBool aIsFullScreen);
这样就能在不让内容随着手机旋转而变化
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/linzhiji/archive/2009/11/26/4874717.aspx
- symbian如何禁止屏幕旋转
- symbian如何禁止屏幕旋转
- iOS 如何禁止屏幕旋转
- 禁止屏幕旋转
- ios禁止屏幕旋转
- 屏幕禁止水平旋转
- 禁止屏幕旋转
- Android禁止旋转屏幕
- 禁止屏幕旋转
- 应用禁止屏幕旋转
- 关于Android如何禁止屏幕旋转刷新界面
- (屏幕适配)支持屏幕旋转,那么如何禁止其中某个视图旋转呢?
- IOS 关于禁止屏幕旋转
- iOS 工程禁止屏幕旋转
- Android 禁止屏幕旋转 screenorientation
- iphone应用程序中禁止屏幕自动旋转 自定义屏幕旋转
- Android 禁止屏幕旋转 & 旋转屏幕时保持Activity内容
- Android 禁止屏幕旋转 & 旋转屏幕时保持Activity内容
- symbian区分当前用户SIM卡是移动还是联通
- Android学习笔记(三)
- JAVA缓存的实现
- 2.6.27内核 netlink socket实现内核和用户的通信
- 2010の三月24
- symbian如何禁止屏幕旋转
- goto 与 start with ... connect by prior [nocyle]
- Jungle Roads hdu1301
- QQ天气预报分析
- 优秀论文的要素
- symbian开发总
- what's delegate in .net?
- C
- Linklabel控件的使用