Mercurial > dwindows
changeset 1311:5f3ce2b1e82d
Fixed DW_MENU_POPUP failing on OS/2 due to an invalid sanity check.
Updated the readme with menu and debug changes.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 04 Nov 2011 05:55:35 +0000 |
parents | 47dbe605a03f |
children | c5db6c70905c |
files | os2/dw.c readme |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/os2/dw.c Fri Nov 04 05:06:52 2011 +0000 +++ b/os2/dw.c Fri Nov 04 05:55:35 2011 +0000 @@ -4729,7 +4729,7 @@ char buffer[30]; int is_checked, is_disabled; - if ( !menux || id > 65536 ) + if ( !menux || !WinIsWindow(dwhab, menux) ) return NULLHANDLE; if ( end )
--- a/readme Fri Nov 04 05:06:52 2011 +0000 +++ b/readme Fri Nov 04 05:55:35 2011 +0000 @@ -60,6 +60,8 @@ to dw_draw_arc(), dw_draw_rect() and dw_draw_polygon(). The fill parameter in the latter two has been replaced with flags where DW_DRAW_FILL is the same as TRUE so code using the old scheme should still work unchanged. +Added DW_MENU_AUTO and DW_MENU_POPUP constants for autogenerating menu IDs. +Added dw_debug() function for sending debug messages to the console. Improved container optimization on Mac, header width now taken into account. Fixes for incorrect return codes from the dw_event_* functions on Windows. Fixes for incorrect behavior on key_press callbacks on Mac and Windows.