diff --git a/include/wx/msw/toplevel.h b/include/wx/msw/toplevel.h index fd1de18d80..5692a86383 100644 --- a/include/wx/msw/toplevel.h +++ b/include/wx/msw/toplevel.h @@ -121,7 +121,7 @@ public: // returns true if the platform should explicitly apply a theme border virtual bool CanApplyThemeBorder() const { return false; } -#if wxUSE_MENUS +#if wxUSE_MENUS && !defined(__WXUNIVERSAL__) bool HandleMenuSelect(WXWORD nItem, WXWORD nFlags, WXHMENU hMenu); // handle WM_EXITMENULOOP message for Win95 only @@ -135,7 +135,7 @@ public: // Find the menu corresponding to the given handle. virtual wxMenu* MSWFindMenuFromHMENU(WXHMENU hMenu); -#endif // wxUSE_MENUS +#endif // wxUSE_MENUS && !__WXUNIVERSAL__ protected: // common part of all ctors diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index 37b3a3d0a7..cda70de511 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -1481,7 +1481,7 @@ void wxTopLevelWindowMSW::OnActivate(wxActivateEvent& event) } } -#if wxUSE_MENUS +#if wxUSE_MENUS && !defined(__WXUNIVERSAL__) bool wxTopLevelWindowMSW::HandleMenuSelect(WXWORD nItem, WXWORD flags, WXHMENU hMenu) @@ -1588,7 +1588,7 @@ wxMenu* wxTopLevelWindowMSW::MSWFindMenuFromHMENU(WXHMENU WXUNUSED(hMenu)) return NULL; } -#endif // wxUSE_MENUS +#endif // wxUSE_MENUS && !__WXUNIVERSAL__