comparison dw.h @ 400:3d4c34bb7834

Add #defines for dw_messagebox() Remove dw_yesno() prototype
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 09 May 2003 13:07:22 +0000
parents 2dbed2673df0
children a4197ddfc50d
comparison
equal deleted inserted replaced
399:a7a561103eac 400:3d4c34bb7834
141 141
142 #define DW_POINTER_ARROW SPTR_ARROW 142 #define DW_POINTER_ARROW SPTR_ARROW
143 #define DW_POINTER_CLOCK SPTR_WAIT 143 #define DW_POINTER_CLOCK SPTR_WAIT
144 144
145 #define DW_OS2_NEW_WINDOW 1 145 #define DW_OS2_NEW_WINDOW 1
146
147 /* flag values for dw_messagebox() */
148 #define DW_MB_OK MB_OK
149 #define DW_MB_OKCANCEL MB_OKCANCEL
150 #define DW_MB_YESNO MB_YESNO
151 #define DW_MB_YESNOCANCEL MB_YESNOCANCEL
152
153 #define DW_MB_WARNING MB_WARNING
154 #define DW_MB_ERROR MB_ERROR
155 #define DW_MB_INFORMATION MB_INFORMATION
156 #define DW_MB_QUESTION MB_QUERY
146 157
147 /* Virtual Key Codes */ 158 /* Virtual Key Codes */
148 #define VK_LBUTTON VK_BUTTON1 159 #define VK_LBUTTON VK_BUTTON1
149 #define VK_RBUTTON VK_BUTTON2 160 #define VK_RBUTTON VK_BUTTON2
150 #define VK_MBUTTON VK_BUTTON3 161 #define VK_MBUTTON VK_BUTTON3
291 #define DW_MLE_CASESENSITIVE 1 302 #define DW_MLE_CASESENSITIVE 1
292 303
293 #define DW_POINTER_ARROW 32512 304 #define DW_POINTER_ARROW 32512
294 #define DW_POINTER_CLOCK 32514 305 #define DW_POINTER_CLOCK 32514
295 306
307 /* flag values for dw_messagebox() */
308 #define DW_MB_OK MB_OK
309 #define DW_MB_OKCANCEL MB_OKCANCEL
310 #define DW_MB_YESNO MB_YESNO
311 #define DW_MB_YESNOCANCEL MB_YESNOCANCEL
312
313 #define DW_MB_WARNING MB_ICONWARNING
314 #define DW_MB_ERROR MB_ICONERROR
315 #define DW_MB_INFORMATION MB_ICONINFORMATION
316 #define DW_MB_QUESTION MB_ICONQUESTION
317
296 /* Key Modifiers */ 318 /* Key Modifiers */
297 #define KC_CTRL (1) 319 #define KC_CTRL (1)
298 #define KC_SHIFT (1 << 1) 320 #define KC_SHIFT (1 << 1)
299 #define KC_ALT (1 << 2) 321 #define KC_ALT (1 << 2)
300 322
487 509
488 #define DW_POINTER_ARROW GDK_TOP_LEFT_ARROW 510 #define DW_POINTER_ARROW GDK_TOP_LEFT_ARROW
489 #define DW_POINTER_CLOCK GDK_WATCH 511 #define DW_POINTER_CLOCK GDK_WATCH
490 512
491 #define HWND_DESKTOP ((HWND)0) 513 #define HWND_DESKTOP ((HWND)0)
514
515 /* flag values for dw_messagebox() */
516 #define DW_MB_OK (1 << 1)
517 #define DW_MB_OKCANCEL (1 << 2)
518 #define DW_MB_YESNO (1 << 3)
519 #define DW_MB_YESNOCANCEL (1 << 4)
520
521 #define DW_MB_WARNING (1 << 10)
522 #define DW_MB_ERROR (1 << 11)
523 #define DW_MB_INFORMATION (1 << 12)
524 #define DW_MB_QUESTION (1 << 13)
492 525
493 /* Virtual Key Codes */ 526 /* Virtual Key Codes */
494 #define VK_LBUTTON GDK_Pointer_Button1 527 #define VK_LBUTTON GDK_Pointer_Button1
495 #define VK_RBUTTON GDK_Pointer_Button3 528 #define VK_RBUTTON GDK_Pointer_Button3
496 #define VK_CANCEL GDK_Cancel 529 #define VK_CANCEL GDK_Cancel
691 724
692 #define DW_SCROLL_UP 0 725 #define DW_SCROLL_UP 0
693 #define DW_SCROLL_DOWN 1 726 #define DW_SCROLL_DOWN 1
694 #define DW_SCROLL_TOP 2 727 #define DW_SCROLL_TOP 2
695 #define DW_SCROLL_BOTTOM 3 728 #define DW_SCROLL_BOTTOM 3
729
730 /* return values for dw_messagebox() */
731 #define DW_MB_RETURN_OK 0
732 #define DW_MB_RETURN_YES 1
733 #define DW_MB_RETURN_NO 0
734 #define DW_MB_RETURN_CANCEL 2
696 735
697 #define DW_PIXMAP_WIDTH(x) (x ? x->width : 0) 736 #define DW_PIXMAP_WIDTH(x) (x ? x->width : 0)
698 #define DW_PIXMAP_HEIGHT(x) (x ? x->height : 0) 737 #define DW_PIXMAP_HEIGHT(x) (x ? x->height : 0)
699 738
700 #define DW_RGB_COLOR (0xF0000000) 739 #define DW_RGB_COLOR (0xF0000000)
899 HPIXMAP API dw_pixmap_new(HWND handle, unsigned long width, unsigned long height, int depth); 938 HPIXMAP API dw_pixmap_new(HWND handle, unsigned long width, unsigned long height, int depth);
900 HPIXMAP API dw_pixmap_new_from_file(HWND handle, char *filename); 939 HPIXMAP API dw_pixmap_new_from_file(HWND handle, char *filename);
901 HPIXMAP API dw_pixmap_grab(HWND handle, ULONG id); 940 HPIXMAP API dw_pixmap_grab(HWND handle, ULONG id);
902 void API dw_pixmap_destroy(HPIXMAP pixmap); 941 void API dw_pixmap_destroy(HPIXMAP pixmap);
903 void API dw_beep(int freq, int dur); 942 void API dw_beep(int freq, int dur);
904 int API dw_messagebox(char *title, char *format, ...); 943 int API dw_messagebox(char *title, int flags, char *format, ...);
905 int API dw_yesno(char *title, char *text);
906 void API dw_environment_query(DWEnv *env); 944 void API dw_environment_query(DWEnv *env);
907 int API dw_exec(char *program, int type, char **params); 945 int API dw_exec(char *program, int type, char **params);
908 int API dw_browse(char *url); 946 int API dw_browse(char *url);
909 char * API dw_file_browse(char *title, char *defpath, char *ext, int flags); 947 char * API dw_file_browse(char *title, char *defpath, char *ext, int flags);
910 char * API dw_user_dir(void); 948 char * API dw_user_dir(void);