add PostSizeEvent() and use it in wxMSW status bar code (#9795)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -841,18 +841,21 @@ void wxWindowBase::DoGetScreenPosition(int *x, int *y) const
|
||||
ClientToScreen(x, y);
|
||||
}
|
||||
|
||||
void wxWindowBase::SendSizeEvent()
|
||||
void wxWindowBase::SendSizeEvent(int flags)
|
||||
{
|
||||
wxSizeEvent event(GetSize(), GetId());
|
||||
event.SetEventObject(this);
|
||||
HandleWindowEvent(event);
|
||||
if ( flags & wxSEND_EVENT_POST )
|
||||
wxPostEvent(this, event);
|
||||
else
|
||||
HandleWindowEvent(event);
|
||||
}
|
||||
|
||||
void wxWindowBase::SendSizeEventToParent()
|
||||
void wxWindowBase::SendSizeEventToParent(int flags)
|
||||
{
|
||||
wxWindow * const parent = GetParent();
|
||||
if ( parent && !parent->IsBeingDeleted() )
|
||||
parent->SendSizeEvent();
|
||||
parent->SendSizeEvent(flags);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user