#if wxUSE_THREADS
delete wxPendingEventsLocker;
// If we don't do the following, we get an apparent memory leak.
+#if wxUSE_VALIDATORS
((wxEvtHandler&) wxDefaultValidator).ClearEventLocker();
+#endif
#endif
wxClassInfo::CleanUpClasses();
{
if ( wnd->MSWTranslateMessage(wxmsg) )
return TRUE;
+
+ // stop at first top level window, i.e. don't try to process the key
+ // strokes originating in a dialog using the accelerators of the parent
+ // frame - this doesn't make much sense
+ if ( wnd->IsTopLevel() )
+ break;
}
// Anyone for a non-translation message? Try youngest descendants first.
// normally result in message boxes popping up &c
wxLog::Suspend();
-#ifdef __WXDEBUG__
+#ifdef __WXDEBUG__
if (gs_inYield)
wxFAIL_MSG( wxT("wxYield called recursively" ) );
#endif
-
+
gs_inYield = TRUE;
// we don't want to process WM_QUIT from here - it should be processed in
{
if (gs_inYield)
return FALSE;
-
+
return wxYield();
}
return TRUE;
#else
wxFAIL_MSG(_T("set wxUSE_ON_FATAL_EXCEPTION to 1 to sue this function"));
-
+
+ (void)doit;
return FALSE;
#endif
}