wxMenuItem::IsChecked() corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1ee4ead5af
commit
4aee367ed0
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue