projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
1. fixes for DrawRotatedText(), drawing sample extended to show it
[wxWidgets.git]
/
src
/
msw
/
menuitem.cpp
diff --git
a/src/msw/menuitem.cpp
b/src/msw/menuitem.cpp
index 2e981bba71976abc1a8775a02ce8e18bf5c27fdb..66157cb2cf38ad25fd41a23a258692bc89313b20 100644
(file)
--- 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