From: Sebastian Lackner sebastian@fds-team.de
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=21855 --- dlls/user32/mdi.c | 2 ++ dlls/user32/tests/win.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/user32/mdi.c b/dlls/user32/mdi.c index dfbb620a17a..e2cecc0bf46 100644 --- a/dlls/user32/mdi.c +++ b/dlls/user32/mdi.c @@ -1357,6 +1357,7 @@ LRESULT WINAPI DefMDIChildProcA( HWND hwnd, UINT message, DefWindowProcA(hwnd, message, wParam, lParam); if( ci->hwndChildMaximized == hwnd ) MDI_UpdateFrameText( GetParent(client), client, TRUE, NULL ); + MDI_RefreshMenu( ci ); return 1; /* success. FIXME: check text length */
case WM_GETMINMAXINFO: @@ -1397,6 +1398,7 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message, DefWindowProcW(hwnd, message, wParam, lParam); if( ci->hwndChildMaximized == hwnd ) MDI_UpdateFrameText( GetParent(client), client, TRUE, NULL ); + MDI_RefreshMenu( ci ); return 1; /* success. FIXME: check text length */
case WM_GETMINMAXINFO: diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index b820d72782b..08b0a5c88e7 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -2821,7 +2821,7 @@ static void test_mdi(void) ok(item_info.fType == MF_STRING, "got type %#x\n", item_info.fType); ok(item_info.wID == 1, "got ID %#x\n", item_info.wID); ok(item_info.fState == MFS_CHECKED, "got state %#x\n", item_info.fState); - todo_wine ok(!strcmp(item_string, "&1 new title"), "got string %s\n", debugstr_a(item_string)); + ok(!strcmp(item_string, "&1 new title"), "got string %s\n", debugstr_a(item_string));
ok(GetMenuItemCount(frame_menu) == 5, "Frame menu should have 4 items after WM_MDISETMENU, but has %u\n", GetMenuItemCount(frame_menu));