]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/menuitem.cpp
some scrolling&refreshing fixed ; removed wxHtmlWindow::OnKeyDown
[wxWidgets.git] / src / os2 / menuitem.cpp
index a5a809c051a9d8958d478fea80b2abc1f034c588..9b9143b352a42229030a6942b39926bbce7adc52 100644 (file)
 // headers & declarations
 // ============================================================================
 
+#ifdef __GNUG__
+    #pragma implementation "menuitem.h"
+#endif
+
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -76,9 +80,9 @@ wxMenuItem::wxMenuItem(wxMenu *pParentMenu,
                        const wxString& text,
                        const wxString& strHelp,
                        bool bCheckable,
-                       wxMenu *pSubMenu) :
+                       wxMenu *pSubMenu)
 #if wxUSE_OWNER_DRAWN
-                        wxOwnerDrawn(text, bCheckable)
+                      :  wxOwnerDrawn(text, bCheckable)
 #endif // owner drawn
 {
     wxASSERT_MSG( pParentMenu != NULL, wxT("a menu item should have a parent") );
@@ -133,9 +137,9 @@ bool wxMenuItem::IsChecked() const
     return FALSE;
 }
 
-wxString wxMenuItem::GetLabel() const
+wxString wxMenuItemBase::GetLabelFromText(const wxString& text)
 {
-    return wxStripMenuCodes(m_text);
+    return wxStripMenuCodes(text);
 }
 
 // accelerators