comparison dw.h @ 584:420c6c94abc7

Added dw_html_* functionality for embedding HTML pages in Dynamic Windows applications.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 22 May 2005 18:07:23 +0000
parents 828e6a66c5c5
children a8ea3d68b9ec
comparison
equal deleted inserted replaced
583:67dfd0cea50d 584:420c6c94abc7
445 #define SCROLLBARCLASSNAME "SCROLLBAR" 445 #define SCROLLBARCLASSNAME "SCROLLBAR"
446 446
447 #define ClassName "dynamicwindows" 447 #define ClassName "dynamicwindows"
448 #define SplitbarClassName "dwsplitbar" 448 #define SplitbarClassName "dwsplitbar"
449 #define ObjectClassName "dwobjectclass" 449 #define ObjectClassName "dwobjectclass"
450 #define BrowserClassName "dwbrowserclass"
450 #define DefaultFont NULL 451 #define DefaultFont NULL
451 452
452 typedef struct _color { 453 typedef struct _color {
453 int fore; 454 int fore;
454 int back; 455 int back;
879 #define DW_ERROR_GENERAL 1 880 #define DW_ERROR_GENERAL 1
880 #define DW_ERROR_TIMEOUT 2 881 #define DW_ERROR_TIMEOUT 2
881 #define DW_ERROR_NON_INIT 3 882 #define DW_ERROR_NON_INIT 3
882 #define DW_ERROR_NO_MEM 4 883 #define DW_ERROR_NO_MEM 4
883 #define DW_ERROR_INTERRUPT 5 884 #define DW_ERROR_INTERRUPT 5
885
886 /* Embedded HTML actions */
887 #define DW_HTML_GOBACK 0
888 #define DW_HTML_GOFORWARD 1
889 #define DW_HTML_GOHOME 2
890 #define DW_HTML_SEARCH 3
891 #define DW_HTML_RELOAD 4
892 #define DW_HTML_STOP 5
884 893
885 #ifndef API 894 #ifndef API
886 #define API 895 #define API
887 #endif 896 #endif
888 897
1119 int API dw_named_event_wait(HEV eve, unsigned long timeout); 1128 int API dw_named_event_wait(HEV eve, unsigned long timeout);
1120 int API dw_named_event_close(HEV eve); 1129 int API dw_named_event_close(HEV eve);
1121 HSHM API dw_named_memory_new(void **dest, int size, char *name); 1130 HSHM API dw_named_memory_new(void **dest, int size, char *name);
1122 HSHM API dw_named_memory_get(void **dest, int size, char *name); 1131 HSHM API dw_named_memory_get(void **dest, int size, char *name);
1123 int API dw_named_memory_free(HSHM handle, void *ptr); 1132 int API dw_named_memory_free(HSHM handle, void *ptr);
1124 1133 void API dw_html_action(HWND hwnd, int action);
1125 #endif 1134 int API dw_html_raw(HWND hwnd, char *string);
1135 int API dw_html_url(HWND hwnd, char *url);
1136 HWND API dw_html_new(unsigned long id);
1137
1138 #endif