X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/47d67540a017101b3e46abe9ef0f55914d8de37e..ce3ed50dbe32d118321082db84c3a9abb047d5b7:/include/wx/msw/listbox.h diff --git a/include/wx/msw/listbox.h b/include/wx/msw/listbox.h index fecc9b2fbc..f64c4741e2 100644 --- a/include/wx/msw/listbox.h +++ b/include/wx/msw/listbox.h @@ -25,7 +25,13 @@ WXDLLEXPORT_DATA(extern const char*) wxListBoxNameStr; // define the array of list box items #include + + #undef WXDLLEXPORTLOCAL + #define WXDLLEXPORTLOCAL WXDLLEXPORT WX_DEFINE_ARRAY(wxOwnerDrawn *, wxListBoxItemsArray); + #undef WXDLLEXPORTLOCAL + #define WXDLLEXPORTLOCAL + #endif // forward decl for GetSelections() @@ -95,6 +101,9 @@ class WXDLLEXPORT wxListBox: public wxControl virtual bool Selected(int n) const ; virtual wxString GetString(int n) const ; virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); + void SetSize(const wxRect& rect, int sizeFlags = wxSIZE_AUTO) + { wxWindow::SetSize(rect, sizeFlags); } + void SetSize(const wxSize& size) { wxWindow::SetSize(size); } // Set the specified item at the first visible item // or scroll to max range.