Recalculate the menu on calling ModifyMenu so that the menu items are
shown at the correct width.
This commit is contained in:
parent
3b3574a468
commit
cec9e23cc3
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue