git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8478
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxMenuBar* bar = GetMenuBar();
+#ifdef __WXMSW__
wxWindow* focusWin = wxFindFocusDescendant((wxWindow*) this);
-
+#else
+ wxWindow* focusWin = (wxWindow*) NULL;
+#endif
if ( bar != NULL )
{
int nCount = bar->GetMenuCount();
while (parent->GetParent())
parent = parent->GetParent();
+#ifdef __WXMSW__
wxWindow* focusWin = wxFindFocusDescendant(parent);
+#else
+ wxWindow* focusWin = (wxWindow*) NULL;
+#endif
wxEvtHandler* evtHandler = focusWin ? focusWin->GetEventHandler() : GetEventHandler() ;