comparison dw.h @ 441:b559c06a76c2

Implemented more functionality on MacOS and include the platform define in the dw-config C flags.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 30 May 2003 00:47:47 +0000
parents fac2afe7bda3
children ab549e2f34b9
comparison
equal deleted inserted replaced
440:9af47c551a56 441:b559c06a76c2
214 typedef void *HTREEITEM; 214 typedef void *HTREEITEM;
215 typedef HWND HMENUI; 215 typedef HWND HMENUI;
216 typedef HMODULE HMOD; 216 typedef HMODULE HMOD;
217 typedef unsigned short UWORD; 217 typedef unsigned short UWORD;
218 218
219 #define DW_NOMENU NULLHANDLE
220
221 extern HAB dwhab; 219 extern HAB dwhab;
222 extern HMQ dwhmq; 220 extern HMQ dwhmq;
223 #endif 221 #endif
224 222
225 #if defined(__MAC__) 223 #if defined(__MAC__)
306 304
307 #define DW_LIT_NONE -1 305 #define DW_LIT_NONE -1
308 306
309 #define DW_MLE_CASESENSITIVE MLFSEARCH_CASESENSITIVE 307 #define DW_MLE_CASESENSITIVE MLFSEARCH_CASESENSITIVE
310 308
311 #define DW_POINTER_ARROW SPTR_ARROW 309 #define DW_POINTER_ARROW 0
312 #define DW_POINTER_CLOCK SPTR_WAIT 310 #define DW_POINTER_CLOCK watchCursor
311
312 #define HWND_DESKTOP ((HWND)0)
313 313
314 /* flag values for dw_messagebox() */ 314 /* flag values for dw_messagebox() */
315 #define DW_MB_OK MB_OK 315 #define DW_MB_OK (1 << 1)
316 #define DW_MB_OKCANCEL MB_OKCANCEL 316 #define DW_MB_OKCANCEL (1 << 2)
317 #define DW_MB_YESNO MB_YESNO 317 #define DW_MB_YESNO (1 << 3)
318 #define DW_MB_YESNOCANCEL MB_YESNOCANCEL 318 #define DW_MB_YESNOCANCEL (1 << 4)
319 319
320 #define DW_MB_WARNING MB_WARNING 320 #define DW_MB_WARNING (1 << 10)
321 #define DW_MB_ERROR MB_ERROR 321 #define DW_MB_ERROR (1 << 11)
322 #define DW_MB_INFORMATION MB_INFORMATION 322 #define DW_MB_INFORMATION (1 << 12)
323 #define DW_MB_QUESTION MB_QUERY 323 #define DW_MB_QUESTION (1 << 13)
324
325
324 #endif 326 #endif
325 327
326 /* Windows specific section */ 328 /* Windows specific section */
327 #if defined(__WIN32__) || defined(WINNT) 329 #if defined(__WIN32__) || defined(WINNT)
328 #include <windows.h> 330 #include <windows.h>
459 HWND handle; 461 HWND handle;
460 void *bits; 462 void *bits;
461 } *HPIXMAP; 463 } *HPIXMAP;
462 464
463 typedef HWND HMENUI; 465 typedef HWND HMENUI;
464
465 #define DW_NOMENU NULL
466 #endif 466 #endif
467 467
468 typedef struct _item { 468 typedef struct _item {
469 /* Item type - Box or Item */ 469 /* Item type - Box or Item */
470 int type; 470 int type;
724 } *HPIXMAP; 724 } *HPIXMAP;
725 725
726 typedef GtkWidget *HMENUI; 726 typedef GtkWidget *HMENUI;
727 typedef void *HTREEITEM; 727 typedef void *HTREEITEM;
728 728
729 #define DW_NOMENU NULL
730
731 typedef struct _resource_struct { 729 typedef struct _resource_struct {
732 long resource_max, *resource_id; 730 long resource_max, *resource_id;
733 char **resource_data; 731 char **resource_data;
734 } DWResources; 732 } DWResources;
735 733
831 #define DW_GREEN_VALUE(a) ((a & DW_GREEN_MASK) >> 8) 829 #define DW_GREEN_VALUE(a) ((a & DW_GREEN_MASK) >> 8)
832 #define DW_BLUE_VALUE(a) ((a & DW_BLUE_MASK) >> 16) 830 #define DW_BLUE_VALUE(a) ((a & DW_BLUE_MASK) >> 16)
833 #define DW_RGB(a, b, c) (0xF0000000 | a | b << 8 | c << 16) 831 #define DW_RGB(a, b, c) (0xF0000000 | a | b << 8 | c << 16)
834 832
835 #define DW_MENU_SEPARATOR "" 833 #define DW_MENU_SEPARATOR ""
834 #define DW_NOMENU 0
836 835
837 #if defined(__OS2__) || defined(__EMX__) 836 #if defined(__OS2__) || defined(__EMX__)
838 #define DW_OS2_RGB(a) ((DW_RED_VALUE(a) << 16) | (DW_GREEN_VALUE(a) << 8) | DW_BLUE_VALUE(a)) 837 #define DW_OS2_RGB(a) ((DW_RED_VALUE(a) << 16) | (DW_GREEN_VALUE(a) << 8) | DW_BLUE_VALUE(a))
839 #endif 838 #endif
840 839