Fix checked state for the popup menu items in the events generated by them.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 16 Sep 2011 13:23:05 +0000 (13:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 16 Sep 2011 13:23:05 +0000 (13:23 +0000)
commit3f8502f7fc4f58ee97cc05adf876c44e04a1498b
treef138e7895da5052be792c800b8c4f0e413523738
parent7aab7c77f4a6649aaa2252976f845325350b8bc0
Fix checked state for the popup menu items in the events generated by them.

We incorrectly passed the sign-extended int id to ::GetMenuState() function
that expects an unsigned WORD id, so it never found the item if the WORD id
had the high bit set. Fix this by correctly passing the unsigned id to it.

Closes #11644.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/menu.cpp