X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcd307ee1f13834bdfe43a0964db657bcd860142..8cfc5426cf50da368022813a04e29cf8ec5478a4:/include/wx/os2/listbox.h diff --git a/include/wx/os2/listbox.h b/include/wx/os2/listbox.h index 81149bf414..790d8606ac 100644 --- a/include/wx/os2/listbox.h +++ b/include/wx/os2/listbox.h @@ -42,7 +42,9 @@ public: const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = NULL, long style = 0, +#if wxUSE_VALIDATORS const wxValidator& validator = wxDefaultValidator, +#endif const wxString& name = wxListBoxNameStr) { Create(parent, id, pos, size, n, choices, style, validator, name); @@ -53,7 +55,9 @@ public: const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = NULL, long style = 0, +#if wxUSE_VALIDATORS const wxValidator& validator = wxDefaultValidator, +#endif const wxString& name = wxListBoxNameStr); virtual ~wxListBox(); @@ -119,7 +123,7 @@ protected: int m_noItems; int m_selected; - virtual wxSize DoGetBestSize(); + virtual wxSize DoGetBestSize() const; #if wxUSE_OWNER_DRAWN // control items