CAknSelectionListDialog dynamic item add/delete

Login to reply to this topic.
Sat, 2005-02-12 19:38
Joined: 2004-10-17
Forum posts: 85
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...

Mon, 2005-02-14 08:35
Anonymous (not verified)
Forum posts: 2043
CAknSelectionListDialog dynamic item add/delete
Does this not work

iDlg->ListBox()->Model()->(whatever fn.)
Wed, 2005-06-01 15:47
Joined: 2005-02-21
Forum posts: 47
Re: CAknSelectionListDialog dynamic item add/delete

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.
Wed, 2005-06-01 15:55
Joined: 2005-02-21
Forum posts: 47
Re: CAknSelectionListDialog dynamic item add/delete

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.
  • Login to reply to this topic.