Recalculate the menu on calling ModifyMenu so that the menu items are

shown at the correct width.
This commit is contained in:
Robert Shearman 2005-04-14 13:56:29 +00:00 committed by Alexandre Julliard
parent 3b3574a468
commit cec9e23cc3
1 changed files with 1 additions and 0 deletions

View File

@ -3522,6 +3522,7 @@ BOOL WINAPI ModifyMenuW( HMENU hMenu, UINT pos, UINT flags,
}
if (!(item = MENU_FindItem( &hMenu, &pos, flags ))) return FALSE;
MENU_GetMenu(hMenu)->Height = 0; /* force size recalculate */
return MENU_SetItemData( item, flags, id, str );
}