diff -b -c -r E:\original_paragui-1.0.4\src\widgets\pglistbox.cpp E:\paragui-1.0.4\src\widgets\pglistbox.cpp *** E:\original_paragui-1.0.4\src\widgets\pglistbox.cpp Mon Jun 10 18:44:06 2002 --- E:\paragui-1.0.4\src\widgets\pglistbox.cpp Sat Jun 28 17:45:15 2003 *************** *** 159,161 **** --- 159,173 ---- my_selectindex--; item->Select(); } + + int PG_ListBox::GetSelectedIndex() { + return my_selectindex; + } + + void PG_ListBox::GetSelectedItems(std::vector& items) { + for (Uint16 i = 0; i < GetWidgetCount(); ++i) { + PG_ListBoxBaseItem* item = static_cast(FindWidget(i)); + if (item->IsSelected()) + items.push_back(item); + } + }