Macros

给我一支烟!请所有烦恼都能过往如云烟!

导航

listbox的输入源

有一个TDESC的数组,其内容和大小都是可变的,想把它作为LIST的显示内容,比如将电话本读出来作为LIST显示给用户
解决方法:
iListBox = new (ELeave) CEikTextListBox;
iListBox->ConstructL(this, CEikListBox::EPopout | CEikListBox::ELeftDownInViewRect);
textArray = static_cast<CDesCArray*>( iListBox->Model()->ItemTextArray() );
textArray->AppendL( _L("Your item") );
iListBox->HandleItemAdditionL();

posted on 2006-05-26 19:08  Macros  阅读(167)  评论(0)    收藏  举报