在appui里的ConstructL中使用:
//强制使用竖屏
CAknAppUiBase::SetOrientationL(EAppUiOrientationPortrait);
//切换为横屏
CAknAppUiBase::SetOrientationL(EAppUiOrientationLandscape);
在appui里的ConstructL中使用:
//强制使用竖屏
CAknAppUiBase::SetOrientationL(EAppUiOrientationPortrait);
//切换为横屏
CAknAppUiBase::SetOrientationL(EAppUiOrientationLandscape);