Use symbolic names for popup menu ids in wxEVT_MENU_HIGHLIGHT events in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 22 Apr 2010 11:21:30 +0000 (11:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 22 Apr 2010 11:21:30 +0000 (11:21 +0000)
commit29c7962a9f3189ba92440c2d8b2dbc8cb7f69e73
tree1ceb60f1854baf76fcbe276cf0aafb8e1bd86956
parentf6a86afff41a67fdd2345803d7bf822de6d244ce
Use symbolic names for popup menu ids in wxEVT_MENU_HIGHLIGHT events in wxMSW.

No real changes, just use wxID_NONE instead of hardcoded -1 (in one place) and
-3 (in another one). Hardcoding them not only made the code less readable but
also resulted in two numbers actually becoming different when they almost
certainly were meant to be the same.

This shouldn't result in any changes in the user-visible behaviour but we now
avoid searching the menu bar for menu items with id of -1 needlessly.

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