X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0ac3149bfac1e37fb6eb1a7388603020d319676..cc24bf919256e8e1d317dbb8e67df6d007d641ea:/src/msw/statbr95.cpp diff --git a/src/msw/statbr95.cpp b/src/msw/statbr95.cpp index 2fd1936449..9b310fcf23 100644 --- a/src/msw/statbr95.cpp +++ b/src/msw/statbr95.cpp @@ -218,7 +218,7 @@ void wxStatusBar95::SetStatusText(const wxString& strText, int nField) // Pass both field number and style. MSDN library doesn't mention // that nField and style have to be 'ORed' - if ( !StatusBar_SetText(GetHwnd(), nField | style, strText) ) + if ( !StatusBar_SetText(GetHwnd(), nField | style, strText.wx_str()) ) { wxLogLastError(wxT("StatusBar_SetText")); } @@ -404,7 +404,7 @@ void wxStatusBar95::SetStatusStyles(int n, const int styles[]) // the fields' styles. MSDN library doesn't mention // that nField and style have to be 'ORed' wxString text = GetStatusText(i); - if (!StatusBar_SetText(GetHwnd(), style | i, text)) + if (!StatusBar_SetText(GetHwnd(), style | i, text.wx_str())) { wxLogLastError(wxT("StatusBar_SetText")); }