]> git.saurik.com Git - wxWidgets.git/commitdiff
prevent IsDialogMessage() from hanging in yet another case
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jul 2003 11:56:39 +0000 (11:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jul 2003 11:56:39 +0000 (11:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 51243e639252b8a7d971b1b29c40bd30c974b57f..a6f3d3a4c17c56d6185844d3b6e7e16c295116d6 100644 (file)
@@ -2010,7 +2010,10 @@ bool wxWindowMSW::MSWProcessMessage(WXMSG* pMsg)
                       node;
                       node = node->GetNext() )
                 {
-                    if ( node->GetData()->AcceptsFocus() )
+                    wxWindow * const win = node->GetData();
+                    if ( win->AcceptsFocus() &&
+                            !(::GetWindowLong(GetHwndOf(win), GWL_EXSTYLE) &
+                                WS_EX_CONTROLPARENT) )
                     {
                         // it shouldn't hang...
                         canSafelyCallIsDlgMsg = TRUE;
@@ -2019,7 +2022,7 @@ bool wxWindowMSW::MSWProcessMessage(WXMSG* pMsg)
                     }
                 }
             }
-#endif
+#endif // !__WXWINCE__
 
             if ( canSafelyCallIsDlgMsg )
             {