Fix int field of wxCommandEvent generated by popup menu items in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 16 Sep 2011 13:23:10 +0000 (13:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 16 Sep 2011 13:23:10 +0000 (13:23 +0000)
commit99893e284f45586bc8c0732eb28bce5aab77beb7
treeb2f1fa59c2fabe14d39fdd0307e74aea2f3b51c9
parent3f8502f7fc4f58ee97cc05adf876c44e04a1498b
Fix int field of wxCommandEvent generated by popup menu items in wxMSW.

The intention of the code generating the event for popup menu items was to
pass false (0) or true (1) in the int field of wxCommandEvent to indicate
whether the item was checked or not but, because wxMenu::SendEvent() takes int
as second argument and not book, we passed either 0 or MF_CHECKED (== 8).

Fix this by correctly passing a boolean for checkable items.

See #11644.

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