Mercurial > dwindows
comparison dw.h @ 1863:0656c716dc9f
Added a few convenience paramater macros to match some code I added in godwindows.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 06 Mar 2013 14:14:38 +0000 |
parents | c836603d3f14 |
children | 3f571ad9b92e |
comparison
equal
deleted
inserted
replaced
1862:9c7485b1921c | 1863:0656c716dc9f |
---|---|
1354 #define DW_GREEN_VALUE(a) ((a & DW_GREEN_MASK) >> 8) | 1354 #define DW_GREEN_VALUE(a) ((a & DW_GREEN_MASK) >> 8) |
1355 #define DW_BLUE_VALUE(a) ((a & DW_BLUE_MASK) >> 16) | 1355 #define DW_BLUE_VALUE(a) ((a & DW_BLUE_MASK) >> 16) |
1356 #define DW_RGB(a, b, c) (0xF0000000 | (a) | (b) << 8 | (c) << 16) | 1356 #define DW_RGB(a, b, c) (0xF0000000 | (a) | (b) << 8 | (c) << 16) |
1357 #endif | 1357 #endif |
1358 | 1358 |
1359 /* Menu convenience paramaters */ | |
1359 #define DW_MENU_SEPARATOR "" | 1360 #define DW_MENU_SEPARATOR "" |
1360 #define DW_NOMENU 0 | 1361 #define DW_NOMENU 0 |
1361 #define DW_MENU_AUTO 0 | 1362 #define DW_MENU_AUTO 0 |
1362 #define DW_MENU_POPUP (unsigned long)-1 | 1363 #define DW_MENU_POPUP (unsigned long)-1 |
1364 | |
1365 /* Convenience parameters for various types */ | |
1366 #define DW_NOHWND 0 | |
1367 #define DW_NOHTIMER 0 | |
1368 #define DW_NOHPRINT 0 | |
1369 #define DW_NOHPIXMAP 0 | |
1370 #define DW_NOHICN 0 | |
1363 | 1371 |
1364 #define DW_PERCENT_INDETERMINATE ((unsigned int)-1) | 1372 #define DW_PERCENT_INDETERMINATE ((unsigned int)-1) |
1365 | 1373 |
1366 /* Return value error codes */ | 1374 /* Return value error codes */ |
1367 #define DW_ERROR_NONE 0 | 1375 #define DW_ERROR_NONE 0 |