X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0dba08dd3987303ff116bf77d5fb877b6d8f32d0..944975221d770af8efe0e03ab4e339b5432e3dd9:/src/common/wincmn.cpp diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index bf4f7da301..b9942fa0a8 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -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); } // ----------------------------------------------------------------------------