comparison dw.h @ 1305:18a31ab94e3d

Added DW_MENU_AUTO and DW_MENU_POPUP flags that can be passed to dw_menu_append_item() in the id field. On OS/2 and Windows AUTO will automatically allocate a menu ID from the larger static pool of IDs. POPUP will automatically allocate an ID from the smaller pool for transient popup menus. These flags don't do anything on the other platforms since they don't require menu IDs.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 03 Nov 2011 10:09:11 +0000
parents b99b0b2c2826
children dbd507f42947
comparison
equal deleted inserted replaced
1304:68f18dccfb8f 1305:18a31ab94e3d
1389 #define DW_RGB(a, b, c) (0xF0000000 | (a) | (b) << 8 | (c) << 16) 1389 #define DW_RGB(a, b, c) (0xF0000000 | (a) | (b) << 8 | (c) << 16)
1390 #endif 1390 #endif
1391 1391
1392 #define DW_MENU_SEPARATOR "" 1392 #define DW_MENU_SEPARATOR ""
1393 #define DW_NOMENU 0 1393 #define DW_NOMENU 0
1394 #define DW_MENU_AUTO 0
1395 #define DW_MENU_POPUP (unsigned long)-1
1394 1396
1395 #define DW_PERCENT_INDETERMINATE ((unsigned int)-1) 1397 #define DW_PERCENT_INDETERMINATE ((unsigned int)-1)
1396 1398
1397 /* Return value error codes */ 1399 /* Return value error codes */
1398 #define DW_ERROR_NONE 0 1400 #define DW_ERROR_NONE 0