Send the wxWindowDestroyEvent for all ports

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-02-19 02:59:36 +00:00
parent 8b49ecd77a
commit 7de595519a
10 changed files with 233 additions and 252 deletions

View File

@@ -58,7 +58,7 @@
#endif // wxUSE_DRAG_AND_DROP
#if wxUSE_ACCESSIBILITY
#include "wx/access.h"
#include "wx/access.h"
#endif
#if wxUSE_HELP
@@ -2078,6 +2078,15 @@ void wxWindowBase::ReleaseMouse()
GetCapture());
}
void wxWindowBase::SendDestroyEvent()
{
wxWindowDestroyEvent event;
event.SetEventObject(this);
event.SetId(GetId());
GetEventHandler()->ProcessEvent(event);
}
// ----------------------------------------------------------------------------
// global functions
// ----------------------------------------------------------------------------