projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed regex bug in ProcessFamiliesFromFontList
[wxWidgets.git]
/
src
/
os2
/
listbox.cpp
diff --git
a/src/os2/listbox.cpp
b/src/os2/listbox.cpp
index 2ecb09a5eb944a05685643aa4281473479bd34dc..83a4d9e826e914147b83b435bfe600859b2b4aa5 100644
(file)
--- a/
src/os2/listbox.cpp
+++ b/
src/os2/listbox.cpp
@@
-30,6
+30,8
@@
#include "wx/dynarray.h"
#include "wx/log.h"
#include "wx/dynarray.h"
#include "wx/log.h"
+#if wxUSE_LISTBOX
+
#if wxUSE_OWNER_DRAWN
#include "wx/ownerdrw.h"
#endif
#if wxUSE_OWNER_DRAWN
#include "wx/ownerdrw.h"
#endif
@@
-207,7
+209,7
@@
void wxListBox::Delete(int N)
#if wxUSE_OWNER_DRAWN
delete m_aItems[N];
#if wxUSE_OWNER_DRAWN
delete m_aItems[N];
- m_aItems.Remove(N);
+ m_aItems.Remove
At
(N);
#else // !wxUSE_OWNER_DRAWN
if ( HasClientObjectData() )
{
#else // !wxUSE_OWNER_DRAWN
if ( HasClientObjectData() )
{
@@
-500,9
+502,9
@@
void wxListBox::SetString(int N, const wxString& s)
void *oldData = NULL;
wxClientData *oldObjData = NULL;
void *oldData = NULL;
wxClientData *oldObjData = NULL;
- if ( m_clientDataItemsType == ClientData_Void )
+ if ( m_clientDataItemsType ==
wx
ClientData_Void )
oldData = GetClientData(N);
oldData = GetClientData(N);
- else if ( m_clientDataItemsType == ClientData_Object )
+ else if ( m_clientDataItemsType ==
wx
ClientData_Object )
oldObjData = GetClientObject(N);
// TODO:
/*
oldObjData = GetClientObject(N);
// TODO:
/*
@@
-774,3
+776,5
@@
bool wxListBox::OS2OnDraw(WXDRAWITEMSTRUCT *item)
}
#endif
// wxUSE_OWNER_DRAWN
}
#endif
// wxUSE_OWNER_DRAWN
+
+#endif //wxUSE_LISTBOX