comparison os2/dw.c @ 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 cea01bd2e0a7
children af25ea2dc5b3
comparison
equal deleted inserted replaced
584:420c6c94abc7 585:4df2d1639005
8341 HAB thishab = WinInitialize(0); 8341 HAB thishab = WinInitialize(0);
8342 HMQ thishmq = WinCreateMsgQueue(dwhab, 0); 8342 HMQ thishmq = WinCreateMsgQueue(dwhab, 0);
8343 void (* API threadfunc)(void *) = NULL; 8343 void (* API threadfunc)(void *) = NULL;
8344 void **tmp = (void **)data; 8344 void **tmp = (void **)data;
8345 8345
8346 threadfunc = (void (*)(void *))tmp[0]; 8346 threadfunc = (void (* API)(void *))tmp[0];
8347 threadfunc(tmp[1]); 8347 threadfunc(tmp[1]);
8348 8348
8349 free(tmp); 8349 free(tmp);
8350 8350
8351 WinDestroyMsgQueue(thishmq); 8351 WinDestroyMsgQueue(thishmq);
9091 free(olddir); 9091 free(olddir);
9092 } 9092 }
9093 if(newurl) 9093 if(newurl)
9094 free(newurl); 9094 free(newurl);
9095 return ret; 9095 return ret;
9096 }
9097
9098 /*
9099 * Causes the embedded HTML widget to take action.
9100 * Parameters:
9101 * handle: Handle to the window.
9102 * action: One of the DW_HTML_* constants.
9103 */
9104 void API dw_html_action(HWND handle, int action)
9105 {
9106 handle = handle;
9107 action = action;
9108 }
9109
9110 /*
9111 * Render raw HTML code in the embedded HTML widget..
9112 * Parameters:
9113 * handle: Handle to the window.
9114 * string: String buffer containt HTML code to
9115 * be rendered.
9116 * Returns:
9117 * 0 on success.
9118 */
9119 int API dw_html_raw(HWND handle, char *string)
9120 {
9121 handle = handle;
9122 string = string;
9123 return -1;
9124 }
9125
9126 /*
9127 * Render file or web page in the embedded HTML widget..
9128 * Parameters:
9129 * handle: Handle to the window.
9130 * url: Universal Resource Locator of the web or
9131 * file object to be rendered.
9132 * Returns:
9133 * 0 on success.
9134 */
9135 int API dw_html_url(HWND handle, char *url)
9136 {
9137 handle = handle;
9138 url = url;
9139 return -1;
9140 }
9141
9142 /*
9143 * Create a new Entryfield window (widget) to be packed.
9144 * Parameters:
9145 * text: The default text to be in the entryfield widget.
9146 * id: An ID to be used with dw_window_from_id() or 0L.
9147 */
9148 HWND API dw_html_new(unsigned long id)
9149 {
9150 id = id;
9151 return dw_box_new(DW_HORZ, 0);
9096 } 9152 }
9097 9153
9098 /* 9154 /*
9099 * Returns a pointer to a static buffer which containes the 9155 * Returns a pointer to a static buffer which containes the
9100 * current user directory. Or the root directory (C:\ on 9156 * current user directory. Or the root directory (C:\ on