Mercurial > dwindows
comparison win/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 | cdbe26a4b116 |
children | e705051d841c |
comparison
equal
deleted
inserted
replaced
1366:edad104e7714 | 1367:a595e368a393 |
---|---|
2111 { | 2111 { |
2112 _dw_toggle_checkable_menu_item( tmp->window, tmp->id ); | 2112 _dw_toggle_checkable_menu_item( tmp->window, tmp->id ); |
2113 /* | 2113 /* |
2114 * Call the user supplied callback | 2114 * Call the user supplied callback |
2115 */ | 2115 */ |
2116 result = clickfunc(tmp->window, tmp->data); | 2116 result = clickfunc((HWND)tmp->id, tmp->data); |
2117 tmp = NULL; | 2117 tmp = NULL; |
2118 } | 2118 } |
2119 } /* this fires for checkable menu items */ | 2119 } /* this fires for checkable menu items */ |
2120 else if ( tmp->window < (HWND)65536 && command == tmp->window && tmp->message != WM_TIMER ) | 2120 else if ( tmp->window < (HWND)65536 && command == tmp->window && tmp->message != WM_TIMER ) |
2121 { | 2121 { |