fix for wxStatusBar wrongly reporting field rects inside EVT_SIZE handler

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-09-01 21:47:49 +00:00
parent 0b52d3cf4d
commit dafa49256d

View File

@@ -309,6 +309,16 @@ void wxStatusBar95::DoMoveWindow(int x, int y, int width, int height)
// adjust fields widths to the new size
SetFieldsWidth();
// we have to trigger wxSizeEvent if there are children window in status
// bar because GetFieldRect returned incorrect (not updated) values up to
// here, which almost certainly resulted in incorrectly redrawn statusbar
if ( m_children.GetCount() > 0 )
{
wxSizeEvent event(GetClientSize(), m_windowId);
event.SetEventObject(this);
GetEventHandler()->ProcessEvent(event);
}
}
#endif // __WIN95__ && wxUSE_NATIVE_STATUSBAR