Give SendSizeEvent a generic implementation. It can be useful on

non-MSW platforms as well.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-11-19 19:20:01 +00:00
parent 9ae8168e5b
commit 2b02216951
2 changed files with 10 additions and 4 deletions

View File

@@ -78,10 +78,7 @@ public:
// sends a size event to the window using its current size -- this has an
// effect of refreshing the window layout
//
// currently it is only implemented under MSW but is declared here to make
// it possible to call it in portable code without using #ifdef's
virtual void SendSizeEvent() { }
virtual void SendSizeEvent();
// menu bar functions
// ------------------

View File

@@ -176,6 +176,15 @@ wxPoint wxFrameBase::GetClientAreaOrigin() const
return pt;
}
void wxFrameBase::SendSizeEvent()
{
wxSizeEvent event( GetSize(), GetId() );
event.SetEventObject( this );
GetEventHandler()->AddPendingEvent( event );
}
// ----------------------------------------------------------------------------
// misc
// ----------------------------------------------------------------------------