From: Vadim Zeitlin Date: Wed, 27 Jun 2007 15:44:06 +0000 (+0000) Subject: fix wxUniv/MSW compilation with wxUSE_MENUS==0 (patch 1744277) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/53a118d6fe4ecbeda81c0eb2bef65e204b3588ad fix wxUniv/MSW compilation with wxUSE_MENUS==0 (patch 1744277) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/taskbar.cpp b/src/msw/taskbar.cpp index 8bc91d1d2f..b95bd215c2 100644 --- a/src/msw/taskbar.cpp +++ b/src/msw/taskbar.cpp @@ -171,6 +171,7 @@ bool wxTaskBarIcon::RemoveIcon() return Shell_NotifyIcon(NIM_DELETE, ¬ifyData) != 0; } +#if wxUSE_MENUS bool wxTaskBarIcon::PopupMenu(wxMenu *menu) { wxASSERT_MSG( m_win != NULL, _T("taskbar icon not initialized") ); @@ -206,6 +207,7 @@ bool wxTaskBarIcon::PopupMenu(wxMenu *menu) return rval; } +#endif // wxUSE_MENUS void wxTaskBarIcon::RegisterWindowMessages() { diff --git a/src/msw/window.cpp b/src/msw/window.cpp index d83eac47ee..4617bdd7b3 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -3151,6 +3151,7 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l break; #endif +#if wxUSE_MENUS case WM_MENUCHAR: // we're only interested in our own menus, not MF_SYSMENU if ( HIWORD(wParam) == MF_POPUP ) @@ -3164,6 +3165,7 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l } } break; +#endif // wxUSE_MENUS #ifndef __WXWINCE__ case WM_POWERBROADCAST: @@ -5195,6 +5197,7 @@ bool wxWindowMSW::HandleKeyUp(WXWPARAM wParam, WXLPARAM lParam) return GetEventHandler()->ProcessEvent(event); } +#if wxUSE_MENUS int wxWindowMSW::HandleMenuChar(int WXUNUSED_IN_WINCE(chAccel), WXLPARAM WXUNUSED_IN_WINCE(lParam)) { @@ -5276,6 +5279,7 @@ bool wxWindowMSW::HandleClipboardEvent( WXUINT nMsg ) return GetEventHandler()->ProcessEvent(evt); } +#endif // wxUSE_MENUS // --------------------------------------------------------------------------- // joystick