X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/717a57c2fabb054c8f00dc5dae70df1d03cfe532..c92d798f9d11d15acb4af65f7fc03187ea9eee7c:/src/msw/menuitem.cpp diff --git a/src/msw/menuitem.cpp b/src/msw/menuitem.cpp index 2e981bba71..66157cb2cf 100644 --- a/src/msw/menuitem.cpp +++ b/src/msw/menuitem.cpp @@ -140,8 +140,7 @@ bool wxMenuItem::IsChecked() const { int flag = ::GetMenuState(GetHMenuOf(m_parentMenu), GetId(), MF_BYCOMMAND); - // don't "and" with MF_ENABLED because its value is 0 - return (flag & MF_DISABLED) == 0; + return (flag & MF_CHECKED) != 0; } wxString wxMenuItem::GetLabel() const