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
This commit is contained in:
@@ -99,10 +99,17 @@ bool wxStatusBar95::Create(wxWindow *parent,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
m_hWnd = (WXHWND)CreateStatusWindow(wstyle,
|
m_hWnd = CreateWindow
|
||||||
wxEmptyString,
|
(
|
||||||
GetHwndOf(parent),
|
STATUSCLASSNAME,
|
||||||
m_windowId);
|
_T(""),
|
||||||
|
wstyle,
|
||||||
|
0, 0, 0, 0,
|
||||||
|
GetHwndOf(parent),
|
||||||
|
(HMENU)m_windowId,
|
||||||
|
wxGetInstance(),
|
||||||
|
NULL
|
||||||
|
);
|
||||||
if ( m_hWnd == 0 )
|
if ( m_hWnd == 0 )
|
||||||
{
|
{
|
||||||
wxLogSysError(_("Failed to create a status bar."));
|
wxLogSysError(_("Failed to create a status bar."));
|
||||||
|
Reference in New Issue
Block a user