c++ - WxWidgets - wxlistbox - store more then string -


can store more informations in wxlistbox string?

i store there objects (from 1 class), possible?

wxlistbox, many other controls, has concept of "client data" i.e. arbitrary pointer can associated each item. don't recommended use however, better maintain objects separately in std::vector<>, do, judging other questions. won't happen automatically however, need update both listbox , vector when insert/delete/update items.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

html - href attribute breaking an element -