X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33961d59b0fc1271fd7f12cf99819a552610269c..4cb122de97b40f0b6c8896f40847a7aaf762abb5:/src/msw/menu.cpp diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index 019415a9e8..87c892530b 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -778,7 +778,8 @@ bool wxMenuBar::IsEnabled(int id) const int flag = ::GetMenuState(GetHmenuOf(itemMenu), id, MF_BYCOMMAND) ; - return (flag & MF_ENABLED) != 0; + // don't "and" with MF_ENABLED because its value is 0 + return (flag & MF_DISABLED) == 0; } void wxMenuBar::SetLabel(int id, const wxString& label)