X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/23645bfa01b6450257f140a30c87565225b1ef4a..d9b4ddf28fbf20fe28d20c72b37c85a8e2db686e:/include/wx/univ/listbox.h diff --git a/include/wx/univ/listbox.h b/include/wx/univ/listbox.h index ddeb5111a4..01ad0a276c 100644 --- a/include/wx/univ/listbox.h +++ b/include/wx/univ/listbox.h @@ -13,10 +13,11 @@ #define _WX_UNIV_LISTBOX_H_ #ifdef __GNUG__ - #pragma implementation "univlistbox.h" + #pragma interface "univlistbox.h" #endif #include "wx/scrolwin.h" // for wxScrollHelper +#include "wx/dynarray.h" // ---------------------------------------------------------------------------- // the actions supported by this control @@ -50,7 +51,7 @@ // wxListBox: a list of selectable items // ---------------------------------------------------------------------------- -class wxListBox : public wxListBoxBase, public wxScrollHelper +class WXDLLEXPORT wxListBox : public wxListBoxBase, public wxScrollHelper { public: // ctors and such @@ -129,10 +130,10 @@ public: void Activate(int item = -1); // select or unselect the specified or current (if -1) item - void Select(bool sel = TRUE, int item = -1); + void DoSelect(int item = -1, bool sel = TRUE); // more readable wrapper - void Unselect(int item) { Select(FALSE, item); } + void DoUnselect(int item) { DoSelect(item, FALSE); } // select an item and send a notification about it void SelectAndNotify(int item);