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:
@@ -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__
|
||||
|
Reference in New Issue
Block a user