为什么小弟我的动态列表显示一片空白?

为什么我的动态列表显示一片空白??
我创建了动态列表 继承public CCoeControl, MEikListBoxObserver
在view.cpp的 constructL()使用createlist()创建列表
然后在点击菜单命令时想显示列表 使用以下函数  
InitializeListBoxL();给列表初始化
iListBoxContainer->SetFocus(ETrue);
iListBoxContainer->SetRect(Rect());
iListBoxContainer->ActivateL();
iListBoxContainer->DrawNow(Rect());
可怎么是一片空白? 请教各位高手~~ 谢谢~~~~

------解决方案--------------------


void CDyListContainer::ConstructL(const TRect& aRect)
{
CreateWindowL();
CreateListL();
iAddress = 0;
iMessage = 0;
SetupScrollBarsL();
iSelectedIds = new (ELeave) RArray<TMsvId>;
SetRect(aRect);
ActivateL();
}



改为


 void CDyListContainer::ConstructL(const TRect& aRect)
{
CreateWindowL();
CreateListL();
iAddress = 0;
iMessage = 0;
SetupScrollBarsL();
iSelectedIds = new (ELeave) RArray<TMsvId>;
SetRect(aRect);

iSmsListBox->SetRect(Rect()) ;
  
ActivateL();
}

------解决方案--------------------
楼主真不厚道,解决了又不结贴,又不给后来人一个解答....
相信还有很多人会问同样的问题。这里只说几个需要注意的地方,其他的网上都有方法。
1。enum TControls
{
// [[[ begin generated region: do not modify [Generated Contents]

// ]]] end generated region [Generated Contents]

// add any user-defined entries here...
EListBox,
ELastControl
};
2。ComponentControl( TInt aIndex ) const
{
// [[[ begin generated region: do not modify [Generated Contents]
switch ( aIndex )
{
case EListBox:
return iListBox;
}
3。SizeChanged()
{
CCoeControl::SizeChanged();
LayoutControls();
// [[[ begin generated region: do not modify [Generated Contents]
if(iListBox)
iListBox->SetRect(Rect());