Mercurial > dwindows
diff dw.h @ 2670:e3a95940c18f
Android: Implement DW_FCF_CLOSEBUTTON and DW_FCF_TITLEBAR flags.
Move the window destroy logic into the C code event handler...
That way handling the DW_SIGNAL_DELETE can prevent the window closure.
The application still can't be stopped from closing, but windows can.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 18 Oct 2021 00:09:57 +0000 |
parents | 2362cb4b7ef9 |
children | 3a7dcc0ae08b |
line wrap: on
line diff
--- a/dw.h Sun Oct 17 20:14:51 2021 +0000 +++ b/dw.h Mon Oct 18 00:09:57 2021 +0000 @@ -812,8 +812,8 @@ #define DW_DT_WORDBREAK 0 #define DW_DT_ERASERECT 0 -#define DW_FCF_CLOSEBUTTON 0 -#define DW_FCF_TITLEBAR 0 +#define DW_FCF_CLOSEBUTTON 1 +#define DW_FCF_TITLEBAR (1 << 1) #define DW_FCF_SYSMENU 0 #define DW_FCF_MENU 0 #define DW_FCF_SIZEBORDER 0