Mercurial > dwindows
changeset 1367:a595e368a393
Menu clicked callbacks on OS/2 and Windows should pass the menu ID as the window handle...
not the handle to the menu that gets used internaly.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 18 Nov 2011 22:49:56 +0000 |
parents | edad104e7714 |
children | 2726b72ec7c4 |
files | os2/dw.c win/dw.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/os2/dw.c Fri Nov 18 20:27:41 2011 +0000 +++ b/os2/dw.c Fri Nov 18 22:49:56 2011 +0000 @@ -2761,7 +2761,7 @@ if(menuowner == hWnd || menuowner == NULLHANDLE) { - result = clickfunc(tmp->window, tmp->data); + result = clickfunc((HWND)tmp->id, tmp->data); tmp = NULL; } }
--- a/win/dw.c Fri Nov 18 20:27:41 2011 +0000 +++ b/win/dw.c Fri Nov 18 22:49:56 2011 +0000 @@ -2113,7 +2113,7 @@ /* * Call the user supplied callback */ - result = clickfunc(tmp->window, tmp->data); + result = clickfunc((HWND)tmp->id, tmp->data); tmp = NULL; } } /* this fires for checkable menu items */