Commit cec9e23c authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

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

shown at the correct width.
parent 3b3574a4
...@@ -3522,6 +3522,7 @@ BOOL WINAPI ModifyMenuW( HMENU hMenu, UINT pos, UINT flags, ...@@ -3522,6 +3522,7 @@ BOOL WINAPI ModifyMenuW( HMENU hMenu, UINT pos, UINT flags,
} }
if (!(item = MENU_FindItem( &hMenu, &pos, flags ))) return FALSE; if (!(item = MENU_FindItem( &hMenu, &pos, flags ))) return FALSE;
MENU_GetMenu(hMenu)->Height = 0; /* force size recalculate */
return MENU_SetItemData( item, flags, id, str ); return MENU_SetItemData( item, flags, id, str );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment