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:
@@ -1887,7 +1887,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);
|
||||
@@ -3325,8 +3325,7 @@ bool wxWindowMSW::HandleCreate(WXLPCREATESTRUCT cs, bool *mayCreate)
|
||||
|
||||
bool wxWindowMSW::HandleDestroy()
|
||||
{
|
||||
wxWindowDestroyEvent event((wxWindow *)this);
|
||||
(void)GetEventHandler()->ProcessEvent(event);
|
||||
SendDestroyEvent();
|
||||
|
||||
// delete our drop target if we've got one
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
|
Reference in New Issue
Block a user