#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."));
// Pass both field number and style. MSDN library doesn't mention
// that nField and style have to be 'ORed'
- if ( !StatusBar_SetText(GetHwnd(), nField | style, strText) )
+ if ( !StatusBar_SetText(GetHwnd(), nField | style, strText.wx_str()) )
{
wxLogLastError(wxT("StatusBar_SetText"));
}
{
wxSizeEvent event(GetClientSize(), m_windowId);
event.SetEventObject(this);
- GetEventHandler()->ProcessEvent(event);
+ HandleWindowEvent(event);
}
}
// the fields' styles. MSDN library doesn't mention
// that nField and style have to be 'ORed'
wxString text = GetStatusText(i);
- if (!StatusBar_SetText(GetHwnd(), style | i, text))
+ if (!StatusBar_SetText(GetHwnd(), style | i, text.wx_str()))
{
wxLogLastError(wxT("StatusBar_SetText"));
}