X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f38374d0d7aa865e9bbe8ee61b75b94ffcdfb220..2adaf5969faf352d740f267b1a4ef79a2cf75980:/src/os2/listbox.cpp?ds=inline diff --git a/src/os2/listbox.cpp b/src/os2/listbox.cpp index f90d2d1417..ec9bfbda11 100644 --- a/src/os2/listbox.cpp +++ b/src/os2/listbox.cpp @@ -30,13 +30,13 @@ #include "wx/dynarray.h" #include "wx/log.h" +#if wxUSE_LISTBOX + #if wxUSE_OWNER_DRAWN #include "wx/ownerdrw.h" #endif -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl) -#endif // ============================================================================ // list box item declaration and implementation @@ -606,7 +606,7 @@ void wxListBox::SetHorizontalExtent(const wxString& s) */ } -wxSize wxListBox::DoGetBestSize() +wxSize wxListBox::DoGetBestSize() const { // find the widest string int wLine; @@ -626,7 +626,7 @@ wxSize wxListBox::DoGetBestSize() // the listbox should be slightly larger than the widest string int cx, cy; - wxGetCharSize(GetHWND(), &cx, &cy, &GetFont()); + wxGetCharSize(GetHWND(), &cx, &cy, (wxFont*)&GetFont()); wListbox += 3*cx; @@ -776,3 +776,5 @@ bool wxListBox::OS2OnDraw(WXDRAWITEMSTRUCT *item) } #endif // wxUSE_OWNER_DRAWN + +#endif //wxUSE_LISTBOX