X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/717a57c2fabb054c8f00dc5dae70df1d03cfe532..58b1642453c5858a4dd29425b065e9215cb8ec79:/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