Mercurial > dwindows
comparison android/dw.cpp @ 2812:723b79981427
Android: I think we need to close the window if the DELETE handler does not
return a positive value. If there is no handler we automatically close it...
but it should also close I believe if the handler doesn't report handled.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 27 Jul 2022 09:56:26 +0000 |
parents | e0ac1ef1c85b |
children | 469e5748c8a5 |
comparison
equal
deleted
inserted
replaced
2811:30cb5d646267 | 2812:723b79981427 |
---|---|
341 /* Window close event */ | 341 /* Window close event */ |
342 case _DW_EVENT_DELETE: | 342 case _DW_EVENT_DELETE: |
343 { | 343 { |
344 int (* API closefunc)(HWND, void *) = (int (* API)(HWND, void *))handler->signalfunction; | 344 int (* API closefunc)(HWND, void *) = (int (* API)(HWND, void *))handler->signalfunction; |
345 retval = closefunc(handler->window, handler->data); | 345 retval = closefunc(handler->window, handler->data); |
346 if(retval < 1) | |
347 dw_window_destroy(handler->window); | |
346 break; | 348 break; |
347 } | 349 } |
348 /* Window expose/draw event */ | 350 /* Window expose/draw event */ |
349 case _DW_EVENT_EXPOSE: | 351 case _DW_EVENT_EXPOSE: |
350 { | 352 { |