X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad9835c97c10c0d7de345e3a7a7c0fc2776eb2cb..ee5aa9d44fa75e88bce9981d7d02dea9f6d5f3c4:/src/os2/listbox.cpp?ds=sidebyside diff --git a/src/os2/listbox.cpp b/src/os2/listbox.cpp index eea8872b6b..aaca7eabcb 100644 --- a/src/os2/listbox.cpp +++ b/src/os2/listbox.cpp @@ -14,9 +14,10 @@ #if wxUSE_LISTBOX +#include "wx/listbox.h" + #ifndef WX_PRECOMP #include "wx/dynarray.h" - #include "wx/listbox.h" #include "wx/settings.h" #include "wx/brush.h" #include "wx/font.h" @@ -24,16 +25,15 @@ #include "wx/dcscreen.h" #include "wx/utils.h" #include "wx/scrolwin.h" + #include "wx/log.h" + #include "wx/window.h" #endif -#include "wx/window.h" #include "wx/os2/private.h" #define INCL_M #include -#include "wx/log.h" - #if wxUSE_OWNER_DRAWN #include "wx/ownerdrw.h" #endif @@ -281,7 +281,7 @@ int wxListBox::DoAppend(const wxString& rsItem) else lIndexType = LIT_END; - lIndex = (long)::WinSendMsg(GetHwnd(), LM_INSERTITEM, (MPARAM)lIndexType, (MPARAM)rsItem.c_str()); + lIndex = (long)::WinSendMsg(GetHwnd(), LM_INSERTITEM, (MPARAM)lIndexType, (MPARAM)rsItem.wx_str()); m_nNumItems++; #if wxUSE_OWNER_DRAWN @@ -318,7 +318,7 @@ void wxListBox::DoSetItems( const wxArrayString& raChoices, lIndexType = LIT_SORTASCENDING; else lIndexType = LIT_END; - ::WinSendMsg(GetHwnd(), LM_INSERTITEM, (MPARAM)lIndexType, (MPARAM)raChoices[i].c_str()); + ::WinSendMsg(GetHwnd(), LM_INSERTITEM, (MPARAM)lIndexType, (MPARAM)raChoices[i].wx_str()); if (ppClientData) { @@ -563,7 +563,7 @@ void wxListBox::DoInsertItems(const wxArrayString& asItems, unsigned int nPos) int nIndex = (int)::WinSendMsg( GetHwnd(), LM_INSERTITEM, MPFROMLONG((LONG)(i + nPos)), - (MPARAM)asItems[i].c_str() ); + (MPARAM)asItems[i].wx_str() ); wxOwnerDrawn* pNewItem = CreateItem(nIndex); @@ -613,7 +613,7 @@ void wxListBox::SetString(unsigned int n, const wxString& rsString) ::WinSendMsg( GetHwnd() ,LM_INSERTITEM ,(MPARAM)nNewN - ,(MPARAM)rsString.c_str() + ,(MPARAM)rsString.wx_str() ); //