From 6df0694f7c7344d322539b75e53c6cfc55adff9f Mon Sep 17 00:00:00 2001 From: Gerard Patel Date: Tue, 28 Sep 1999 13:05:54 +0000 Subject: [PATCH] Force recalculation of menu when calling InsertMenuItem. --- controls/menu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/controls/menu.c b/controls/menu.c index f3a1dfb9d9a..bfa5196e516 100644 --- a/controls/menu.c +++ b/controls/menu.c @@ -1822,6 +1822,7 @@ static MENUITEM *MENU_InsertItem( HMENU hMenu, UINT pos, UINT flags ) menu->items = newItems; menu->nItems++; memset( &newItems[pos], 0, sizeof(*newItems) ); + menu->Height = 0; /* force size recalculate */ return &newItems[pos]; }