diff -r efd4f1afd43e -r d620048b4810 meetingrequest/mrguicommon/src/cmrlabel.cpp --- a/meetingrequest/mrguicommon/src/cmrlabel.cpp Mon Jun 21 15:20:54 2010 +0300 +++ b/meetingrequest/mrguicommon/src/cmrlabel.cpp Thu Jul 15 18:19:25 2010 +0300 @@ -29,13 +29,13 @@ // CMRLabel::NewL // --------------------------------------------------------------------------- // -EXPORT_C CMRLabel* CMRLabel::NewL() +EXPORT_C CMRLabel* CMRLabel::NewL( const CCoeControl* aParent ) { FUNC_LOG; CMRLabel* self = new (ELeave) CMRLabel(); CleanupStack::PushL( self ); - self->ConstructL(); + self->ConstructL( aParent ); CleanupStack::Pop( self ); return self; } @@ -44,12 +44,17 @@ // CMRLabel::ConstructL // --------------------------------------------------------------------------- // -void CMRLabel::ConstructL() +void CMRLabel::ConstructL( const CCoeControl* aParent ) { FUNC_LOG; NMRColorManager::SetColor( *this, NMRColorManager::EMRMainAreaTextColor ); + + if ( aParent ) + { + SetContainerWindowL( *aParent ); + } } // ---------------------------------------------------------------------------