]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
test for the bug with showing a modeless dialog from a modal one in wxGTK
[wxWidgets.git] / src / msw / window.cpp
index 4ee76d5b6802cc2175806debb2aafced259d7a9d..07f274bdfe22456af8c3ba1e6388e81cdcc3be65 100644 (file)
@@ -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