X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcd307ee1f13834bdfe43a0964db657bcd860142..6e264973e636cc41915d166cb7eddf2a7e72cf9b:/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