Mercurial > dwindows
changeset 498:00d0514cadc8
Fixes to the new popup menu code, removed a bogus check that was causing
the obsolete signal handlers to hang around. Also added code to delay
removing the signal handlers until after the WM_COMMAND has been run.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 12 Dec 2003 07:14:17 +0000 |
parents | a7f478e9c20c |
children | b658d9628f41 |
files | os2/dw.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/os2/dw.c Fri Dec 12 05:45:44 2003 +0000 +++ b/os2/dw.c Fri Dec 12 07:14:17 2003 +0000 @@ -2688,9 +2688,14 @@ } break; case WM_MENUEND: + /* Delay removing the signal until we've executed + * the signal handler. + */ + WinPostMsg(hWnd, WM_USER+2, mp1, mp2); + break; + case WM_USER+2: _clear_emphasis(); - if(dw_window_get_data((HWND)mp2, "_dw_popup")) - _free_menu_data((HWND)mp2); + _free_menu_data((HWND)mp2); break; }