replaced wxYield() call in PopupMenu() by a much safer wxYieldForCommandsOnly() - fixes tree ctrl bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -957,16 +957,21 @@ bool wxApp::DoMessage()
|
||||
#endif // wxUSE_THREADS
|
||||
|
||||
// Process the message
|
||||
if ( !ProcessMessage((WXMSG *)&s_currentMsg) )
|
||||
{
|
||||
::TranslateMessage(&s_currentMsg);
|
||||
::DispatchMessage(&s_currentMsg);
|
||||
}
|
||||
DoMessage((WXMSG *)&s_currentMsg);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void wxApp::DoMessage(WXMSG *pMsg)
|
||||
{
|
||||
if ( !ProcessMessage(pMsg) )
|
||||
{
|
||||
::TranslateMessage((MSG *)pMsg);
|
||||
::DispatchMessage((MSG *)pMsg);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Keep trying to process messages until WM_QUIT
|
||||
* received.
|
||||
|
||||
Reference in New Issue
Block a user