]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/menu.cpp
WM_MOUSEMOVE correction
[wxWidgets.git] / src / msw / menu.cpp
index 845c67a0b46e33ab2aa4dd4c4c594078977cfacd..dc9f5dfba612bc45e0efd185ea5228aad63c1781 100644 (file)
@@ -432,12 +432,14 @@ bool wxMenu::ProcessCommand(wxCommandEvent & event)
 {
     bool processed = FALSE;
 
+#if wxUSE_MENU_CALLBACK
     // Try a callback
     if (m_callback)
     {
         (void)(*(m_callback))(*this, event);
         processed = TRUE;
     }
+#endif // wxUSE_MENU_CALLBACK
 
     // Try the menu's event handler
     if ( !processed && GetEventHandler())