X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e0a050e347b1ece07ad5f165ba1b1d16edbeae77..18caa1e963269d02499b327bb4e7cc2ac48fd67e:/src/msw/statbr95.cpp diff --git a/src/msw/statbr95.cpp b/src/msw/statbr95.cpp index 9b310fcf23..0913dbf5aa 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)m_windowId.GetValue(), + wxGetInstance(), + NULL + ); if ( m_hWnd == 0 ) { wxLogSysError(_("Failed to create a status bar.")); @@ -373,7 +380,7 @@ void wxStatusBar95::DoMoveWindow(int x, int y, int width, int height) { wxSizeEvent event(GetClientSize(), m_windowId); event.SetEventObject(this); - GetEventHandler()->ProcessEvent(event); + HandleWindowEvent(event); } }