]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/window.cpp
the find dialog is created hidden, as all the other top level windows, but the docs...
[wxWidgets.git] / src / os2 / window.cpp
index d88927fcaeb0533b66225a84de4f4ff3a4ddac70..96931c33ebe9d7d1d23fdfb42cddf248854743fe 100644 (file)
@@ -2234,6 +2234,8 @@ static void wxYieldForCommandsOnly()
     {
         wxTheApp->DoMessage((WXMSG*)&vMsg);
     }
+    if (vMsg.msg == WM_QUIT)
+        ::WinPostMsg(NULL, WM_QUIT, 0, 0);
 }
 #endif // wxUSE_MENUS_NATIVE
 
@@ -2427,6 +2429,14 @@ bool wxWindowOS2::OS2ProcessMessage(
                                 pBtn->OS2Command(BN_CLICKED, 0 /* unused */);
                                 return TRUE;
                             }
+                            else if (!IsTopLevel())
+                            {
+                                //
+                                // if not a top level window, let parent
+                                // handle it
+                                //
+                                return FALSE;
+                            }
                             // else: but if it does not it makes sense to make
                             //       it work like a TAB - and that's what we do.
                             //       Note that Ctrl-Enter always works this way.