prevent IsDialogMessage() from hanging in yet another case

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-20 11:56:39 +00:00
parent 8fa3a431af
commit 82fee08622

View File

@@ -2010,7 +2010,10 @@ bool wxWindowMSW::MSWProcessMessage(WXMSG* pMsg)
node; node;
node = node->GetNext() ) 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... // it shouldn't hang...
canSafelyCallIsDlgMsg = TRUE; canSafelyCallIsDlgMsg = TRUE;
@@ -2019,7 +2022,7 @@ bool wxWindowMSW::MSWProcessMessage(WXMSG* pMsg)
} }
} }
} }
#endif #endif // !__WXWINCE__
if ( canSafelyCallIsDlgMsg ) if ( canSafelyCallIsDlgMsg )
{ {