meetingrequest/mrgui/mrfieldbuilderpluginextension/src/cesmrresponseitem.cpp
branchRCL_3
changeset 60 d620048b4810
parent 52 efd4f1afd43e
--- a/meetingrequest/mrgui/mrfieldbuilderpluginextension/src/cesmrresponseitem.cpp	Mon Jun 21 15:20:54 2010 +0300
+++ b/meetingrequest/mrgui/mrfieldbuilderpluginextension/src/cesmrresponseitem.cpp	Thu Jul 15 18:19:25 2010 +0300
@@ -94,7 +94,7 @@
 void CESMRResponseItem::ConstructL( const TDesC& aItemText, TBool aHasIcon )
     {
     FUNC_LOG;
-    iSelectionLabel = CMRLabel::NewL();
+    iSelectionLabel = CMRLabel::NewL( this );
     iSelectionLabel->SetTextL( aItemText );
 
     // Response item might not have icon. e.g. topic line
@@ -299,6 +299,24 @@
     }
 
 // -----------------------------------------------------------------------------
+// CESMRResponseItem::SetContainerWindowL
+// -----------------------------------------------------------------------------
+//
+void CESMRResponseItem::SetContainerWindowL( const CCoeControl& aContainer )
+    {
+    FUNC_LOG;
+    
+    CCoeControl::SetContainerWindowL( aContainer );
+    
+    TInt count( CountComponentControls() );
+    
+    for ( TInt i = 0; i < count; ++i )
+        {
+        ComponentControl( i )->SetContainerWindowL( *this );
+        }
+    }
+
+// -----------------------------------------------------------------------------
 // CESMRResponseItem::IconL
 // -----------------------------------------------------------------------------
 //
@@ -312,7 +330,7 @@
         {
         iconID = NMRBitmapManager::EMRBitmapCheckBoxOn;
         }
-    CMRImage* icon = CMRImage::NewL( iconID );
+    CMRImage* icon = CMRImage::NewL( iconID, this );
     return icon;
     }