]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/menu.cpp
Build fix in wxLog
[wxWidgets.git] / src / msw / menu.cpp
index 73540e9d8305b80fcd3c2ce91e316f58e02fca47..5c0c4cc9d4540b30374dae8ae70465649c620a73 100644 (file)
@@ -9,21 +9,8 @@
 // Licence:    wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
-
-// ============================================================================
-// declarations
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-// wxWindows headers
-// -----------------
-
 #ifdef __GNUG__
-  #pragma implementation "menu.h"
-  #pragma implementation "menuitem.h"
+#pragma implementation "menu.h"
 #endif
 
 // For compilers that support precompilation, includes "wx.h".
@@ -86,6 +73,8 @@ wxMenu::wxMenu(const wxString& Title, const wxFunction func)
   m_hMenu = (WXHMENU) CreatePopupMenu();
   m_savehMenu = 0 ;
   m_topLevelMenu = this;
+  m_clientData = (void*) NULL;
+
   if (m_title != "")
   {
     Append(idMenuTitle, m_title) ;
@@ -521,7 +510,7 @@ void wxMenu::ProcessCommand(wxCommandEvent & event)
   // Try the window the menu was popped up from (and up
   // through the hierarchy)
   if ( !processed && GetInvokingWindow())
-    processed = GetInvokingWindow()->ProcessEvent(event);
+    processed = GetInvokingWindow()->GetEventHandler()->ProcessEvent(event);
 }
 
 extern wxMenu *wxCurrentPopupMenu;