# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1116786067 0 # Node ID 4df2d1639005d00a273466b11c73a5faeded8a5c # Parent 420c6c94abc7a815864b8ba2dfc332877f91c722 Added stubs for the HTML render on OS/2. diff -r 420c6c94abc7 -r 4df2d1639005 dw.def --- a/dw.def Sun May 22 18:07:23 2005 +0000 +++ b/dw.def Sun May 22 18:21:07 2005 +0000 @@ -261,3 +261,8 @@ dw_named_event_post @463 dw_named_event_wait @464 dw_named_event_close @465 + + dw_html_new @470 + dw_html_action @471 + dw_html_raw @472 + dw_html_url @473 diff -r 420c6c94abc7 -r 4df2d1639005 os2/dw.c --- a/os2/dw.c Sun May 22 18:07:23 2005 +0000 +++ b/os2/dw.c Sun May 22 18:21:07 2005 +0000 @@ -8343,7 +8343,7 @@ void (* API threadfunc)(void *) = NULL; void **tmp = (void **)data; - threadfunc = (void (*)(void *))tmp[0]; + threadfunc = (void (* API)(void *))tmp[0]; threadfunc(tmp[1]); free(tmp); @@ -9096,6 +9096,62 @@ } /* + * Causes the embedded HTML widget to take action. + * Parameters: + * handle: Handle to the window. + * action: One of the DW_HTML_* constants. + */ +void API dw_html_action(HWND handle, int action) +{ + handle = handle; + action = action; +} + +/* + * Render raw HTML code in the embedded HTML widget.. + * Parameters: + * handle: Handle to the window. + * string: String buffer containt HTML code to + * be rendered. + * Returns: + * 0 on success. + */ +int API dw_html_raw(HWND handle, char *string) +{ + handle = handle; + string = string; + return -1; +} + +/* + * Render file or web page in the embedded HTML widget.. + * Parameters: + * handle: Handle to the window. + * url: Universal Resource Locator of the web or + * file object to be rendered. + * Returns: + * 0 on success. + */ +int API dw_html_url(HWND handle, char *url) +{ + handle = handle; + url = url; + return -1; +} + +/* + * Create a new Entryfield window (widget) to be packed. + * Parameters: + * text: The default text to be in the entryfield widget. + * id: An ID to be used with dw_window_from_id() or 0L. + */ +HWND API dw_html_new(unsigned long id) +{ + id = id; + return dw_box_new(DW_HORZ, 0); +} + +/* * Returns a pointer to a static buffer which containes the * current user directory. Or the root directory (C:\ on * OS/2 and Windows).