Reuse functionality of wxGetStockLabel().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-08-16 20:23:04 +00:00
parent 89c9b933e3
commit e27d9a9106
2 changed files with 4 additions and 3 deletions

View File

@@ -35,6 +35,7 @@
#endif //WX_PRECOMP
#include "wx/generic/mdig.h"
#include "wx/stockitem.h"
enum MDI_MENU_ID
{
@@ -307,7 +308,7 @@ void wxGenericMDIParentFrame::AddWindowMenu(wxMenuBar *pMenuBar)
{
if (pMenuBar && m_pWindowMenu)
{
int pos = pMenuBar->FindMenu(wxStripMenuCodes(wxString(_("&Help"))));
int pos = pMenuBar->FindMenu(wxGetStockLabel(wxID_HELP,false));
if (pos == wxNOT_FOUND)
{
pMenuBar->Append(m_pWindowMenu, _("&Window"));