Once I create a CAknSelectionListDialog and give it an array of list items do display in its NewL(), how do I later on (dynamically) add new list items and delete the ones that already exist? CAknSelectionListDialog does not let me get a model to its itemarray...
I have somewhat similar problem - I do a modeless CAknSelectionListDialog and provide it with some class implementating a MDesCArray as an array. Now, if I add something to that array provided, it does not display on the screen even if I call ListBox()->HandleItemAdditionL()... stupid small problems.
Ok, it seems that CAknSelectionListDialog makes a copy of that array provided to NewL. I came to the conlusion by looking at Model's itemarray pointers. Congratulations! I conclude it that the dialog is for presenting static list. And this does not reveal from the docs.
iDlg->ListBox()->Model()->(whatever fn.)
Forum posts: 47
I have somewhat similar problem - I do a modeless CAknSelectionListDialog and provide it with some class implementating a MDesCArray as an array.
Now, if I add something to that array provided, it does not display on the screen even if I call ListBox()->HandleItemAdditionL()... stupid small problems.
Ahti.
Forum posts: 47
Ok, it seems that CAknSelectionListDialog makes a copy of that array provided to NewL. I came to the conlusion by looking at Model's itemarray pointers. Congratulations! I conclude it that the dialog is for presenting static list. And this does not reveal from the docs.
Ahti.