Mercurial > dwindows
comparison win/dw.c @ 2021:0cce5fed4594
Win: get_HWND method does not seem to be working, so use Set/GetProperty()
to save the browser window handle for use in the DWebBrowserEvents2 callbacks.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 09 Nov 2019 06:33:08 +0000 |
parents | 663d79f28e46 |
children | 28809bf17957 |
comparison
equal
deleted
inserted
replaced
2020:59dfb86fb3b1 | 2021:0cce5fed4594 |
---|---|
2384 } | 2384 } |
2385 } | 2385 } |
2386 break; | 2386 break; |
2387 case WM_USER+100: | 2387 case WM_USER+100: |
2388 { | 2388 { |
2389 int (DWSIGNAL *htmlresultfunc)(HWND, int, char *, void *, void *) = tmp->signalfunction; | 2389 if(hWnd == tmp->window) |
2390 | 2390 { |
2391 return htmlresultfunc(tmp->window, mp1 ? DW_ERROR_NONE : DW_ERROR_UNKNOWN, (char *)mp1, (void *)mp2, tmp->data); | 2391 int (DWSIGNAL *htmlresultfunc)(HWND, int, char *, void *, void *) = tmp->signalfunction; |
2392 | |
2393 return htmlresultfunc(tmp->window, mp1 ? DW_ERROR_NONE : DW_ERROR_UNKNOWN, (char *)mp1, (void *)mp2, tmp->data); | |
2394 } | |
2392 } | 2395 } |
2393 break; | 2396 break; |
2394 case WM_USER+101: | 2397 case WM_USER+101: |
2395 { | 2398 { |
2396 int (DWSIGNAL *htmlchangedfunc)(HWND, int, char *, void *) = tmp->signalfunction; | 2399 if(hWnd == tmp->window) |
2397 | 2400 { |
2398 return htmlchangedfunc(tmp->window, DW_POINTER_TO_INT(mp1), (char *)mp2, tmp->data); | 2401 int (DWSIGNAL *htmlchangedfunc)(HWND, int, char *, void *) = tmp->signalfunction; |
2402 | |
2403 return htmlchangedfunc(tmp->window, DW_POINTER_TO_INT(mp1), (char *)mp2, tmp->data); | |
2404 } | |
2399 } | 2405 } |
2400 break; | 2406 break; |
2401 } | 2407 } |
2402 } | 2408 } |
2403 if(tmp) | 2409 if(tmp) |