Mercurial > dwindows
changeset 585:4df2d1639005
Added stubs for the HTML render on OS/2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 22 May 2005 18:21:07 +0000 |
parents | 420c6c94abc7 |
children | b9d903cde2f4 |
files | dw.def os2/dw.c |
diffstat | 2 files changed, 62 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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).