Send the wxWindowDestroyEvent for all ports (binary compatible backport)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-02-19 03:07:41 +00:00
parent 2d364cbfae
commit d1af2c3470
8 changed files with 234 additions and 203 deletions

View File

@@ -1891,7 +1891,7 @@ static void wxYieldForCommandsOnly()
{
wxTheApp->DoMessage((WXMSG *)&msg);
}
// If we retrieved a WM_QUIT, insert back into the message queue.
if (msg.message == WM_QUIT)
::PostQuitMessage(0);
@@ -3298,6 +3298,7 @@ bool wxWindowMSW::HandleCreate(WXLPCREATESTRUCT cs, bool *mayCreate)
bool wxWindowMSW::HandleDestroy()
{
wxWindowDestroyEvent event((wxWindow *)this);
event.SetId(GetId());
(void)GetEventHandler()->ProcessEvent(event);
// delete our drop target if we've got one