i created a view supported app by 2nd SDK fp2,and add the code below in the first container cpp and create corresponding resource in the rss file.but the listbox doesn't display wherever on emulator or on my N72.
any advice would be appreciated.
(CEikColumnListBox* iListBox; //in .h )
iListBox = new(ELeave) CAknSingleStyleListBox();
iListBox->SetContainerWindowL(*this);
iListBox->SetListBoxObserver(this);
TResourceReader reader;
CEikonEnv::Static()->CreateResourceReaderLC( reader, R_TEXT_SINGLE );
iListBox->ConstructFromResourceL( reader );
CleanupStack::PopAndDestroy(); // resource stuffs.
iListBox->CreateScrollBarFrameL(ETrue);
iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff,CEikScrollBarFrame::EAuto);
iListBox->SetRect(Rect());
iListBox->ActivateL();
TInt pos( iListBox->View()->CurrentItemIndex() );
if ( iListBox->ScrollBarFrame() )
{
iListBox->ScrollBarFrame()->MoveVertThumbTo( pos );
}
DrawNow();




