X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/96dcd41a121908339af548ea4026012e7c73746d..364f3b070071ee73e417a3770342d779774288e8:/src/msw/wince/menuce.cpp?ds=inline diff --git a/src/msw/wince/menuce.cpp b/src/msw/wince/menuce.cpp index 18db390404..6231ea1e22 100644 --- a/src/msw/wince/menuce.cpp +++ b/src/msw/wince/menuce.cpp @@ -6,7 +6,7 @@ // Created: 28.05.2004 // RCS-ID: $Id$ // Copyright: (c) Wlodzimierz Skiba -// License: wxWindows licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -37,6 +37,7 @@ #include #include #include +#include #include "wx/msw/wince/missing.h" #include "wx/msw/wince/resources.h" @@ -53,11 +54,7 @@ wxTopLevelWindowMSW::ButtonMenu::ButtonMenu() wxTopLevelWindowMSW::ButtonMenu::~ButtonMenu() { - if(m_menu) - { - delete m_menu; - m_menu = NULL; - }; + wxDELETE(m_menu); } void wxTopLevelWindowMSW::SetLeftMenu(int id, const wxString& label, wxMenu *subMenu) @@ -77,7 +74,7 @@ void wxTopLevelWindowMSW::ButtonMenu::SetButton(int id, const wxString& label, w m_assigned = true; m_id = id; if(label.empty() && wxIsStockID(id)) - m_label = wxGetStockLabel(id, false); + m_label = wxGetStockLabel(id, wxSTOCK_NOFLAGS); else m_label = label; m_menu = subMenu; @@ -224,7 +221,7 @@ void wxTopLevelWindowMSW::ReloadAllButtons() if (!SHCreateMenuBar(&menu_bar)) { - wxFAIL_MSG( _T("SHCreateMenuBar failed") ); + wxFAIL_MSG( wxT("SHCreateMenuBar failed") ); return; }