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
Post a Comment