From ad18ae6252122b80ffc3c8f16c4ee3a710126d8b Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Wed, 24 Dec 2003 19:27:47 +0000 Subject: [PATCH] Fixed compilation and only does mdi tests when enabled in setup.h git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/menu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index 5ee13bedb3..38a7dfadd9 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -36,6 +36,7 @@ #include "wx/utils.h" #include "wx/intl.h" #include "wx/log.h" + #include "wx/mdi.h" #endif #if wxUSE_OWNER_DRAWN @@ -1059,6 +1060,7 @@ wxMenu *wxMenuBar::Remove(size_t pos) } } #else +#if wxUSE_MDI_ARCHITECTURE //MDI - window menu stuff if (GetFrame() && GetFrame()->IsKindOf(CLASSINFO(wxMDIParentFrame))) { @@ -1130,6 +1132,7 @@ wxMenu *wxMenuBar::Remove(size_t pos) }//end if child == wxMDIChildFrame }//end children iteration loop }//end if GetFrame()->IsKindOf(CLASSINFO(wxMDIParentFrame)) +#endif //wxUSE_MDI_ARCHITECTURE if ( !::RemoveMenu(GetHmenu(), (UINT)pos, MF_BYPOSITION) ) {