Check that menu ids are limited to MSW-supported range.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 May 2010 12:40:18 +0000 (12:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 May 2010 12:40:18 +0000 (12:40 +0000)
commitd93b98740c3907268b7edc0afaa7521f3e6dc8ba
treee60d23141abaf77460c455d05f9703cc3ba4df19
parentbcd286534a7d880de1b9156a87e6bf5df87f6573
Check that menu ids are limited to MSW-supported range.

We already check that positive (i.e. specified by user and not generated by
wx) window ids are in 0..SHRT_MAX range. Now do the same for the menu ids as
ids outside of this range suffer from the same problem under MSW: they get
wrapped and become negative when we receive events for them.

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