git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54478
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
UpdateAccel(pItem);
#endif // wxUSE_ACCEL
UpdateAccel(pItem);
#endif // wxUSE_ACCEL
+ // we should support disabling the item even prior to adding it to the menu
+ UINT flags = pItem->IsEnabled() ? MF_ENABLED : MF_GRAYED;
// if "Break" has just been called, insert a menu break before this item
// (and don't forget to reset the flag)
// if "Break" has just been called, insert a menu break before this item
// (and don't forget to reset the flag)