From: Vadim Zeitlin Date: Tue, 22 Mar 2011 17:15:38 +0000 (+0000) Subject: Post size events to the event handler and not window itself. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b83144c46f10877124002b22f35878176bb2fdbf Post size events to the event handler and not window itself. Post the artificial wxSizeEvent to the window event handler and not window itself in SendSizeEvent() as otherwise any event handlers wouldn't see this event at all. Closes #13066. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index eca7dd157a..b2c96009ac 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -1064,7 +1064,7 @@ void wxWindowBase::SendSizeEvent(int flags) wxSizeEvent event(GetSize(), GetId()); event.SetEventObject(this); if ( flags & wxSEND_EVENT_POST ) - wxPostEvent(this, event); + wxPostEvent(GetEventHandler(), event); else HandleWindowEvent(event); }