]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/listbox.h
Resize fine tuning
[wxWidgets.git] / include / wx / msw / listbox.h
index d8cf809003e4d44e763ec398ac1b0c55f3e3302d..ac0efc056fbc51340a2fcbbf5707da80ed9d2d8c 100644 (file)
 
 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()
@@ -63,15 +69,15 @@ 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);
 
   // plug-in for derived classes
-  virtual wxOwnerDrawn *CreateItem(uint n);
+  virtual wxOwnerDrawn *CreateItem(size_t n);
 
   // allows to get the item and use SetXXX functions to set it's appearance
-  wxOwnerDrawn *GetItem(uint n) const { return m_aItems[n]; }
+  wxOwnerDrawn *GetItem(size_t n) const { return m_aItems[n]; }
 #endif
 
   virtual void Append(const wxString& item);
@@ -125,7 +131,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