translate window menu title in MDI parent frame

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-05-30 20:44:06 +00:00
parent ff05c6bb11
commit 1f15195e08

View File

@@ -1206,10 +1206,11 @@ static void MDISetMenu(wxWindow *win, HMENU hmenuFrame, HMENU hmenuWindow)
{
::SendMessage(GetWinHwnd(win), WM_MDISETMENU,
#ifdef __WIN32__
(WPARAM)hmenuFrame, (LPARAM)hmenuWindow);
(WPARAM)hmenuFrame, (LPARAM)hmenuWindow
#else
0, MAKELPARAM(hmenuFrame, hmenuWindow));
0, MAKELPARAM(hmenuFrame, hmenuWindow)
#endif
);
// update menu bar of the parent window
wxWindow *parent = win->GetParent();
@@ -1238,18 +1239,18 @@ static void InsertWindowMenu(wxWindow *win, WXHMENU menu, HMENU subMenu)
continue;
}
if ( wxStripMenuCodes(wxString(buf)).IsSameAs(wxT("Help")) )
if ( wxStripMenuCodes(wxString(buf)).IsSameAs(_("Help")) )
{
success = TRUE;
::InsertMenu(hmenu, i, MF_BYPOSITION | MF_POPUP | MF_STRING,
(UINT)subMenu, wxT("&Window"));
(UINT)subMenu, _("&Window"));
break;
}
}
if ( !success )
{
::AppendMenu(hmenu, MF_POPUP, (UINT)subMenu, wxT("&Window"));
::AppendMenu(hmenu, MF_POPUP, (UINT)subMenu, _("&Window"));
}
}
@@ -1273,7 +1274,7 @@ static void RemoveWindowMenu(wxWindow *win, WXHMENU menu)
continue;
}
if ( wxStripMenuCodes(wxString(buf)).IsSameAs(wxT("Window")) )
if ( wxStripMenuCodes(wxString(buf)).IsSameAs(_("Window")) )
{
success = TRUE;
::RemoveMenu(hmenu, i, MF_BYPOSITION);