Mercurial > dwindows
comparison os2/dw.c @ 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 | 417866ad960b |
children | 896347a9be19 |
comparison
equal
deleted
inserted
replaced
1366:edad104e7714 | 1367:a595e368a393 |
---|---|
2759 { | 2759 { |
2760 HWND menuowner = _menu_owner(tmp->window); | 2760 HWND menuowner = _menu_owner(tmp->window); |
2761 | 2761 |
2762 if(menuowner == hWnd || menuowner == NULLHANDLE) | 2762 if(menuowner == hWnd || menuowner == NULLHANDLE) |
2763 { | 2763 { |
2764 result = clickfunc(tmp->window, tmp->data); | 2764 result = clickfunc((HWND)tmp->id, tmp->data); |
2765 tmp = NULL; | 2765 tmp = NULL; |
2766 } | 2766 } |
2767 } | 2767 } |
2768 else if(tmp->window < 65536 && command == tmp->window) | 2768 else if(tmp->window < 65536 && command == tmp->window) |
2769 { | 2769 { |