multimediacommscontroller/mmcccontroller/src/mccscreen.cpp
branchRCL_3
changeset 46 4da1f672912e
parent 45 3f7c7e6eea8a
equal deleted inserted replaced
45:3f7c7e6eea8a 46:4da1f672912e
   201     
   201     
   202     User::LeaveIfError( iRwGroup->Construct( groupId, EFalse ) );
   202     User::LeaveIfError( iRwGroup->Construct( groupId, EFalse ) );
   203     iRwGroup->SetName( KMccWindowGroupName );
   203     iRwGroup->SetName( KMccWindowGroupName );
   204     
   204     
   205     iRwGroup->SetOrdinalPosition( iWindowOrdinalPosition, iWindowOrdinalPriority );
   205     iRwGroup->SetOrdinalPosition( iWindowOrdinalPosition, iWindowOrdinalPriority );
       
   206     iRwGroup->AutoForeground( EFalse );
   206          
   207          
   207     // Create screen device
   208     // Create screen device
   208     iDev = new (ELeave) CWsScreenDevice( iRwSession );
   209     iDev = new (ELeave) CWsScreenDevice( iRwSession );
   209     iDev->Construct( iDeviceIndex ); 
   210     iDev->Construct( iDeviceIndex ); 
   210     
   211     
   792 		TRect vfRect( TPoint( 0, 0 ), iArea );
   793 		TRect vfRect( TPoint( 0, 0 ), iArea );
   793         iGraphicsContext->Activate( *iRw ); 
   794         iGraphicsContext->Activate( *iRw ); 
   794         iRw->Invalidate( vfRect );
   795         iRw->Invalidate( vfRect );
   795         iRw->BeginRedraw( vfRect );
   796         iRw->BeginRedraw( vfRect );
   796         iGraphicsContext->CancelClippingRect();
   797         iGraphicsContext->CancelClippingRect();
       
   798         iGraphicsContext->SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   797         iGraphicsContext->SetBrushStyle( CGraphicsContext::ESolidBrush );
   799         iGraphicsContext->SetBrushStyle( CGraphicsContext::ESolidBrush );
   798         iGraphicsContext->SetBrushColor( TRgb( 255, 255, 255, 0 ) );
   800         iGraphicsContext->SetBrushColor( TRgb( 255, 255, 255, 0 ) );
   799         iGraphicsContext->DrawRect( vfRect );
   801         iGraphicsContext->DrawRect( vfRect );
   800         iRw->EndRedraw();
   802         iRw->EndRedraw();
   801         iGraphicsContext->Deactivate();
   803         iGraphicsContext->Deactivate();