Problem: Win32: the "Disabled" menu items would appear enabled.
Solution: Use submenu_id if there is a parent. (Shane Harper, closes #834)
}
else
#endif
- if (grey)
- EnableMenuItem(s_menuBar, menu->id, MF_BYCOMMAND | MF_GRAYED);
- else
- EnableMenuItem(s_menuBar, menu->id, MF_BYCOMMAND | MF_ENABLED);
+ (void)EnableMenuItem(menu->parent ? menu->parent->submenu_id : s_menuBar,
+ menu->id, MF_BYCOMMAND | (grey ? MF_GRAYED : MF_ENABLED));
#ifdef FEAT_TEAROFF
if ((menu->parent != NULL) && (IsWindow(menu->parent->tearoff_handle)))
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1901,
/**/
1900,
/**/