X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/65fd5cb0124e62ab1fc41f93382a205d95b00e75..7b9da2077d0975db6c965a85c91d5aca671ab5e3:/src/msw/statbr95.cpp?ds=sidebyside diff --git a/src/msw/statbr95.cpp b/src/msw/statbr95.cpp index b8de79f67c..87455611bf 100644 --- a/src/msw/statbr95.cpp +++ b/src/msw/statbr95.cpp @@ -97,11 +97,11 @@ bool wxStatusBar95::Create(wxWindow *parent, wxWindowID id, long style) wstyle |= SBARS_SIZEGRIP; m_hWnd = (WXHWND)CreateStatusWindow(wstyle, - _T(""), + wxT(""), (HWND)parent->GetHWND(), m_windowId); if ( m_hWnd == 0 ) { - wxLogSysError(_T("can't create status bar window")); + wxLogSysError(wxT("can't create status bar window")); return FALSE; } @@ -147,6 +147,9 @@ void wxStatusBar95::SetStatusWidths(int n, const int widths[]) void wxStatusBar95::SetFieldsWidth() { + if ( !m_nFields ) + return; + int *pWidths = new int[m_nFields]; int nWindowWidth, y; @@ -191,7 +194,7 @@ void wxStatusBar95::SetFieldsWidth() } if ( !StatusBar_SetParts(hwnd, m_nFields, pWidths) ) { - wxLogLastError(_T("StatusBar_SetParts")); + wxLogLastError(wxT("StatusBar_SetParts")); } delete [] pWidths; @@ -200,7 +203,7 @@ void wxStatusBar95::SetFieldsWidth() void wxStatusBar95::SetStatusText(const wxString& strText, int nField) { if ( !StatusBar_SetText(hwnd, nField, strText) ) { - wxLogLastError(_T("StatusBar_SetText")); + wxLogLastError(wxT("StatusBar_SetText")); } } @@ -208,7 +211,7 @@ wxString wxStatusBar95::GetStatusText(int nField) const { wxASSERT( (nField > -1) && (nField < m_nFields) ); - wxString str(_T("")); + wxString str(wxT("")); int len = StatusBar_GetTextLen(hwnd, nField); if (len > 0) {