move SendSizeEvent() down to wxWindow from wxFrame; added SendSizeEventToParent() helper
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -841,6 +841,20 @@ void wxWindowBase::DoGetScreenPosition(int *x, int *y) const
|
||||
ClientToScreen(x, y);
|
||||
}
|
||||
|
||||
void wxWindowBase::SendSizeEvent()
|
||||
{
|
||||
wxSizeEvent event(GetSize(), GetId());
|
||||
event.SetEventObject(this);
|
||||
HandleWindowEvent(event);
|
||||
}
|
||||
|
||||
void wxWindowBase::SendSizeEventToParent()
|
||||
{
|
||||
wxWindow * const parent = GetParent();
|
||||
if ( parent && !parent->IsBeingDeleted() )
|
||||
parent->SendSizeEvent();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// show/hide/enable/disable the window
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user