X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/937013e0fd914d4c42f9f5ec98da665986b93dfa..dd9f8b6bb6935360a8271dc3e8749fb026b601a8:/src/msw/statbr95.cpp diff --git a/src/msw/statbr95.cpp b/src/msw/statbr95.cpp index d87e65c515..f06e0e7c05 100644 --- a/src/msw/statbr95.cpp +++ b/src/msw/statbr95.cpp @@ -99,10 +99,17 @@ bool wxStatusBar95::Create(wxWindow *parent, #endif } - m_hWnd = (WXHWND)CreateStatusWindow(wstyle, - wxEmptyString, - GetHwndOf(parent), - m_windowId); + m_hWnd = CreateWindow + ( + STATUSCLASSNAME, + _T(""), + wstyle, + 0, 0, 0, 0, + GetHwndOf(parent), + (HMENU)wxUIntToPtr(m_windowId.GetValue()), + wxGetInstance(), + NULL + ); if ( m_hWnd == 0 ) { wxLogSysError(_("Failed to create a status bar."));