mmsharing/mmshui/src/musuigeneralview.cpp
branchRCL_3
changeset 24 407431f36921
parent 21 ce86b6d44a6d
equal deleted inserted replaced
21:ce86b6d44a6d 24:407431f36921
   891     {
   891     {
   892     // If there is no background container then do not care
   892     // If there is no background container then do not care
   893     if ( iBackgroundContainer )
   893     if ( iBackgroundContainer )
   894         {
   894         {
   895         iBackgroundContainer->UpdateOrdinalPositionValue( aUp );              
   895         iBackgroundContainer->UpdateOrdinalPositionValue( aUp );              
   896         }    
   896         }
   897     }
   897     }
       
   898 
       
   899 // -----------------------------------------------------------------------------
       
   900 // Do refresh for background container only if display is disabled.
       
   901 // Refreshing if display is enabled would cause bg container
       
   902 // to draw itself on top of display area, making it invisible.
       
   903 // -----------------------------------------------------------------------------
       
   904 //
       
   905 void CMusUiGeneralView::RefreshBackgroundContainer()
       
   906     {
       
   907     if ( !iBackgroundContainer )
       
   908         {
       
   909         return;
       
   910         }  
       
   911     TBool displayEnabled( EFalse );
       
   912     if ( EventController() )
       
   913         {
       
   914         TRAP_IGNORE( displayEnabled = EventController()->IsDisplayEnabledL() )
       
   915         }
       
   916 
       
   917     if ( !displayEnabled )
       
   918         {
       
   919         MUS_LOG( "mus: [MUSUI ] <-> CMusUiGeneralView::RefreshBackgroundContainer()" )
       
   920         iBackgroundContainer->SetRect( ClientRect() );
       
   921         }
       
   922     }
       
   923 
   898 // end of file
   924 // end of file
   899 
   925 
   900 
   926 
   901 
   927 
   902 
   928