From: Vadim Zeitlin Date: Tue, 4 Dec 2007 01:29:46 +0000 (+0000) Subject: use CreateWindow() instead of CreateStatusWindow() for statusbar creation as the... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2a11c8265e9dc24b65cfeaabb072e148ee3787e1?ds=sidebyside;hp=61314f91d0851cfa40b72cf82b129356fd9dacda use CreateWindow() instead of CreateStatusWindow() for statusbar creation as the latter is not supported by MSLU and so doesn't work under Win9x git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/statbr95.cpp b/src/msw/statbr95.cpp index d87e65c515..57990a9c80 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, + wxGetInstance(), + NULL + ); if ( m_hWnd == 0 ) { wxLogSysError(_("Failed to create a status bar."));