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 <wx/dynarray.h>
+
+ #undef WXDLLEXPORTLOCAL
+ #define WXDLLEXPORTLOCAL WXDLLEXPORT
WX_DEFINE_ARRAY(wxOwnerDrawn *, wxListBoxItemsArray);
+ #undef WXDLLEXPORTLOCAL
+ #define WXDLLEXPORTLOCAL
+
#endif
// forward decl for GetSelections()
bool MSWCommand(WXUINT param, WXWORD id);
-#if USE_OWNER_DRAWN
+#if wxUSE_OWNER_DRAWN
bool MSWOnMeasure(WXMEASUREITEMSTRUCT *item);
bool MSWOnDraw(WXDRAWITEMSTRUCT *item);
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.
int m_noItems;
int m_selected;
-#if USE_OWNER_DRAWN
+#if wxUSE_OWNER_DRAWN
// control items
wxListBoxItemsArray m_aItems;
#endif