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:
@@ -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
|
||||
// ------------------
|
||||
|
@@ -176,6 +176,15 @@ wxPoint wxFrameBase::GetClientAreaOrigin() const
|
||||
return pt;
|
||||
}
|
||||
|
||||
|
||||
void wxFrameBase::SendSizeEvent()
|
||||
{
|
||||
wxSizeEvent event( GetSize(), GetId() );
|
||||
event.SetEventObject( this );
|
||||
GetEventHandler()->AddPendingEvent( event );
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// misc
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user