ListBox的输入源

来源:互联网 发布:443端口是什么 编辑:程序博客网 时间:2024/05/07 04:50
有一个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(); 
原创粉丝点击