multimediacommscontroller/mmcccontroller/src/mccscreen.cpp
branchRCL_3
changeset 45 3f7c7e6eea8a
parent 10 267e1b1adf0c
child 46 4da1f672912e
equal deleted inserted replaced
42:817c922b90eb 45:3f7c7e6eea8a
   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 );
       
   207          
   206          
   208     // Create screen device
   207     // Create screen device
   209     iDev = new (ELeave) CWsScreenDevice( iRwSession );
   208     iDev = new (ELeave) CWsScreenDevice( iRwSession );
   210     iDev->Construct( iDeviceIndex ); 
   209     iDev->Construct( iDeviceIndex ); 
   211     
   210     
   793 		TRect vfRect( TPoint( 0, 0 ), iArea );
   792 		TRect vfRect( TPoint( 0, 0 ), iArea );
   794         iGraphicsContext->Activate( *iRw ); 
   793         iGraphicsContext->Activate( *iRw ); 
   795         iRw->Invalidate( vfRect );
   794         iRw->Invalidate( vfRect );
   796         iRw->BeginRedraw( vfRect );
   795         iRw->BeginRedraw( vfRect );
   797         iGraphicsContext->CancelClippingRect();
   796         iGraphicsContext->CancelClippingRect();
   798         iGraphicsContext->SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
       
   799         iGraphicsContext->SetBrushStyle( CGraphicsContext::ESolidBrush );
   797         iGraphicsContext->SetBrushStyle( CGraphicsContext::ESolidBrush );
   800         iGraphicsContext->SetBrushColor( TRgb( 255, 255, 255, 0 ) );
   798         iGraphicsContext->SetBrushColor( TRgb( 255, 255, 255, 0 ) );
   801         iGraphicsContext->DrawRect( vfRect );
   799         iGraphicsContext->DrawRect( vfRect );
   802         iRw->EndRedraw();
   800         iRw->EndRedraw();
   803         iGraphicsContext->Deactivate();
   801         iGraphicsContext->Deactivate();