]> git.saurik.com Git - wxWidgets.git/commitdiff
use CreateWindow() instead of CreateStatusWindow() for statusbar creation as the...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Dec 2007 01:29:46 +0000 (01:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Dec 2007 01:29:46 +0000 (01:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/statbr95.cpp

index d87e65c51557dccaa3dbd03933360a7ddc134d1c..57990a9c8078ed70fbc6a9fcdf156e2e20135a71 100644 (file)
@@ -99,10 +99,17 @@ bool wxStatusBar95::Create(wxWindow *parent,
 #endif
     }
 
 #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."));
     if ( m_hWnd == 0 )
     {
         wxLogSysError(_("Failed to create a status bar."));