X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e911dd0a5abd10c32d6cce4cff44e1cb06c3036b..572f4ad212f7f5d4e1bad60d4c30a682ce3f3152:/src/msw/choice.cpp diff --git a/src/msw/choice.cpp b/src/msw/choice.cpp index 0c0dbc10c7..ea922c9e41 100644 --- a/src/msw/choice.cpp +++ b/src/msw/choice.cpp @@ -333,7 +333,7 @@ int wxChoice::FindString(const wxString& s, bool bCase) const else { int pos = (int)SendMessage(GetHwnd(), CB_FINDSTRINGEXACT, - (WPARAM)-1, (LPARAM)s.wx_str()); + (WPARAM)-1, wxMSW_CONV_LPARAM(s)); return pos == LB_ERR ? wxNOT_FOUND : pos; } @@ -360,7 +360,7 @@ void wxChoice::SetString(unsigned int n, const wxString& s) const bool wasSelected = static_cast(n) == GetSelection(); ::SendMessage(GetHwnd(), CB_DELETESTRING, n, 0); - ::SendMessage(GetHwnd(), CB_INSERTSTRING, n, (LPARAM)s.wx_str() ); + ::SendMessage(GetHwnd(), CB_INSERTSTRING, n, wxMSW_CONV_LPARAM(s) ); // restore the client data if ( oldData )