summaryrefslogtreecommitdiffstats
path: root/win/tkWinMenu.c
diff options
context:
space:
mode:
authorchengyemao <chengyemao>2005-01-17 07:00:11 (GMT)
committerchengyemao <chengyemao>2005-01-17 07:00:11 (GMT)
commit34c66cf0c6bfb04c9222a5a0ac770a67ee457966 (patch)
treeaf1f5a9ab323a7f62858d42e1b07fd78de995233 /win/tkWinMenu.c
parent755a33fa24ee2e9c505c528c743441fb070e6259 (diff)
downloadtk-34c66cf0c6bfb04c9222a5a0ac770a67ee457966.zip
tk-34c66cf0c6bfb04c9222a5a0ac770a67ee457966.tar.gz
tk-34c66cf0c6bfb04c9222a5a0ac770a67ee457966.tar.bz2
minor bug fix: should return 0 and indicate handled after processing WM_MENUSELECT message
Diffstat (limited to 'win/tkWinMenu.c')
-rw-r--r--win/tkWinMenu.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c
index 9f922ca..ef881e0 100644
--- a/win/tkWinMenu.c
+++ b/win/tkWinMenu.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinMenu.c,v 1.41 2005/01/13 01:48:03 chengyemao Exp $
+ * RCS: @(#) $Id: tkWinMenu.c,v 1.42 2005/01/17 07:00:11 chengyemao Exp $
*/
#define OEMRESOURCE
@@ -1096,9 +1096,9 @@ TkWinHandleMenuEvent(phwnd, pMessage, pwParam, plParam, plResult)
Tcl_BackgroundError(interp);
}
Tcl_Release((ClientData)interp);
+ *plResult = 0;
+ returnResult = 1;
}
- *plResult = 0;
- returnResult = 1;
break;
}
@@ -1210,9 +1210,9 @@ TkWinHandleMenuEvent(phwnd, pMessage, pwParam, plParam, plResult)
- itemPtr->rcItem.top, 0, drawArrow);
ckfree((char *) twdPtr);
- *plResult = 1;
- returnResult = 1;
}
+ *plResult = 1;
+ returnResult = 1;
break;
}
@@ -1262,6 +1262,8 @@ TkWinHandleMenuEvent(phwnd, pMessage, pwParam, plParam, plResult)
}
MenuSelectEvent(menuPtr);
Tcl_ServiceAll();
+ *plResult = 0;
+ returnResult = 1;
}
}
break;