use kind, not id, of a menu item to test whether it's a separator: this allows having separators with ids other than wxID_SEPARATOR in case it's useful to distinguish between them (patch 1929039)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -47,7 +47,8 @@ public:
|
||||
@param parentMenu
|
||||
Menu that the menu item belongs to.
|
||||
@param id
|
||||
Identifier for this menu item, or wxID_SEPARATOR to indicate a separator.
|
||||
Identifier for this menu item. May be wxID_SEPARATOR, in which case the
|
||||
given kind is ignored and taken to be wxITEM_SEPARATOR instead.
|
||||
@param text
|
||||
Text for the menu item, as shown on the menu. An accelerator
|
||||
key can be specified using the ampersand " character. In order to embed an
|
||||
|
Reference in New Issue
Block a user