X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/864c08b2ed2f9d6afaf68738fbd9b8c3ecc68df9..07aaf32633ecf18ec3edfbb41793a112914792d0:/src/msw/statusbar.cpp diff --git a/src/msw/statusbar.cpp b/src/msw/statusbar.cpp index f4284ab52d..c2767b34df 100644 --- a/src/msw/statusbar.cpp +++ b/src/msw/statusbar.cpp @@ -275,6 +275,7 @@ void wxStatusBar::DoUpdateStatusText(int nField) style = SBT_NOBORDERS; break; + case wxSB_SUNKEN: case wxSB_NORMAL: default: style = 0; @@ -317,7 +318,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"); } @@ -553,6 +554,7 @@ void wxStatusBar::SetStatusStyles(int n, const int styles[]) case wxSB_FLAT: style = SBT_NOBORDERS; break; + case wxSB_SUNKEN: case wxSB_NORMAL: default: style = 0; @@ -563,7 +565,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"); }