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
This commit is contained in:
parent
b78a53aca0
commit
b83144c46f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user