Artifact
eb6a6cb014d69410afe60ffd0c2d02cf61164a2a:
Attachment "tkWinMenu_tk85.diff" to
ticket [1192095f]
added by
wildcard_25
2005-05-01 10:22:12.
Index: win/tkWinMenu.c
===================================================================
RCS file: /cvsroot/tktoolkit/tk/win/tkWinMenu.c,v
retrieving revision 1.44
diff -u -d -r1.44 tkWinMenu.c
--- win/tkWinMenu.c 28 Apr 2005 02:40:19 -0000 1.44
+++ win/tkWinMenu.c 1 May 2005 03:04:18 -0000
@@ -1238,6 +1238,7 @@
if (menuPtr != NULL) {
long entryIndex = LOWORD(*pwParam);
+ if (menuPtr->menuType == MENUBAR) { entryIndex++; }
mePtr = NULL;
if (flags != 0xFFFF) {
if ((flags & MF_POPUP) && (entryIndex < menuPtr->numEntries)) {