X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3cda63537ebeb531ef272910b574a28c483be69e..7b218dfaf47dc47705f6d6cba9408fa9f9cca70e:/include/wx/msw/listbox.h?ds=sidebyside diff --git a/include/wx/msw/listbox.h b/include/wx/msw/listbox.h index b11df5edd3..f64c4741e2 100644 --- a/include/wx/msw/listbox.h +++ b/include/wx/msw/listbox.h @@ -20,12 +20,18 @@ WXDLLEXPORT_DATA(extern const char*) wxListBoxNameStr; -#if USE_OWNER_DRAWN +#if wxUSE_OWNER_DRAWN class WXDLLEXPORT wxOwnerDrawn; // 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() @@ -63,7 +69,7 @@ class WXDLLEXPORT wxListBox: public wxControl bool MSWCommand(WXUINT param, WXWORD id); -#if USE_OWNER_DRAWN +#if wxUSE_OWNER_DRAWN bool MSWOnMeasure(WXMEASUREITEMSTRUCT *item); bool MSWOnDraw(WXDRAWITEMSTRUCT *item); @@ -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. @@ -125,7 +134,7 @@ class WXDLLEXPORT wxListBox: public wxControl int m_noItems; int m_selected; -#if USE_OWNER_DRAWN +#if wxUSE_OWNER_DRAWN // control items wxListBoxItemsArray m_aItems; #endif