void CNPRStoryListBoxView::SetupStatusPaneL() { // reset the context pane TUid contextPaneUid = TUid::Uid( EEikStatusPaneUidContext ); CEikStatusPaneBase::TPaneCapabilities subPaneContext = StatusPane()->PaneCapabilities( contextPaneUid ); if ( subPaneContext.IsPresent() && subPaneContext.IsAppOwned() ) { CAknContextPane* context = static_cast< CAknContextPane* > ( StatusPane()->ControlL( contextPaneUid ) ); context->SetPictureToDefaultL(); } // setup the title pane TUid titlePaneUid = TUid::Uid( EEikStatusPaneUidTitle ); CEikStatusPaneBase::TPaneCapabilities subPaneTitle = StatusPane()->PaneCapabilities( titlePaneUid ); if ( subPaneTitle.IsPresent() && subPaneTitle.IsAppOwned() ) { CAknTitlePane* title = static_cast< CAknTitlePane* >( StatusPane()->ControlL( titlePaneUid ) ); TResourceReader reader; iEikonEnv->CreateResourceReaderLC( reader, R_NPRSTORY_LIST_BOX_TITLE_RESOURCE ); title->SetFromResourceL( reader ); CleanupStack::PopAndDestroy(); // reader internal state } }
/* ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- */ void CMainContainer::HandlerExitL(CYTasksContainer* /*aHandler*/) { delete iYTasksContainer; iYTasksContainer = NULL; CEikStatusPane* sp = ((CAknAppUi*)iEikonEnv->EikAppUi())->StatusPane(); if(sp) { CAknTitlePane* TitlePane = STATIC_CAST(CAknTitlePane*,sp->ControlL(TUid::Uid(EEikStatusPaneUidTitle))); TitlePane->SetTextToDefaultL(); CAknContextPane* ContextPane = (CAknContextPane *)sp->ControlL(TUid::Uid(EEikStatusPaneUidContext)); if(ContextPane) { ContextPane->SetPictureToDefaultL(); } if(sp->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_USUAL) { sp->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_USUAL); } sp->DrawNow(); } if(iTimeOutTimer) { iTimeOutTimer->After(KSplashTimeOut); } else { if(iGridIsOn) MakeGridBoxL(); else MakeListBoxL(); } SetMenuL(); DrawNow(); }