Friday, April 04, 2008

How to change screen orientation of UI application

void CMyClass::RotateMe()
{

// Change the screen orientation.
if (CAknAppUi::EAppUiOrientationPortrait != AppUi()->Orientation())
{
AppUi()->SetOrientationL(CAknAppUi::EAppUiOrientationPortrait);
}
else
{
AppUi()->SetOrientationL(CAknAppUi::EAppUiOrientationLandscape);
}
}

1 comment:

SHARAN said...

sir i m shankar working on symbian c++ for 3rd addition sir we got some problem.... i want 2 change scerrn orientation,we r mannage 3 views when we r in 1st view and i want 2 chage screen mode then screen was contioue with old draw(), but after that we can change view and return old view orientation was working fine ...........we r not able 2 short out exact problem so ple if u hv any idea about that pls help me my mail id is tripathi.shankar@gmail.com
bye ...

stats counter