Fix handling of MSWWindowProc return value for menu events

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@77889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2014-09-26 14:42:46 +00:00
parent 4403ea7d97
commit a08b2965fc

View File

@@ -3498,8 +3498,11 @@ wxWindowMSW::MSWHandleMessage(WXLRESULT *result,
// compatibility requirements on wx-3.0 make it simpler to just forward
// the messages to the wxTLW.
wxWindow *tlw = wxGetTopLevelParent(this);
if ( tlw && tlw != this )
processed = tlw->MSWWindowProc(message, wParam, lParam);
if (tlw && tlw != this)
{
rc.result = tlw->MSWWindowProc(message, wParam, lParam);
processed = rc.result == 0;
}
}
break;
#endif // !__WXMICROWIN__