X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/864c08b2ed2f9d6afaf68738fbd9b8c3ecc68df9..eaa8686b7192641931947c29337d555890d9836a:/src/msw/statusbar.cpp diff --git a/src/msw/statusbar.cpp b/src/msw/statusbar.cpp index f4284ab52d..321df1bb05 100644 --- a/src/msw/statusbar.cpp +++ b/src/msw/statusbar.cpp @@ -317,7 +317,7 @@ void wxStatusBar::DoUpdateStatusText(int nField) // Set the status text in the native control passing both field number and style. // NOTE: MSDN library doesn't mention that nField and style have to be 'ORed' - if ( !StatusBar_SetText(GetHwnd(), nField | style, text.wx_str()) ) + if ( !StatusBar_SetText(GetHwnd(), nField | style, text.t_str()) ) { wxLogLastError("StatusBar_SetText"); } @@ -563,7 +563,7 @@ void wxStatusBar::SetStatusStyles(int n, const int styles[]) // the fields' styles. // NOTE: MSDN library doesn't mention that nField and style have to be 'ORed' wxString text = GetStatusText(i); - if (!StatusBar_SetText(GetHwnd(), style | i, text.wx_str())) + if (!StatusBar_SetText(GetHwnd(), style | i, text.t_str())) { wxLogLastError("StatusBar_SetText"); }