Mercurial > dwindows
comparison win/dw.c @ 2104:6e55c6f8d816
Added initial notification callback code to the test program.
Win: Added initial notification callback handler glue and fixed a memory leak.
The activation callbacks do not seem to be triggering so added some debug code to test.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 16 Jun 2020 00:16:59 +0000 |
parents | 12a9546c3e03 |
children | 35abef6e33a9 |
comparison
equal
deleted
inserted
replaced
2103:2417bc294e30 | 2104:6e55c6f8d816 |
---|---|
2471 if(hWnd == tmp->window) | 2471 if(hWnd == tmp->window) |
2472 { | 2472 { |
2473 int (DWSIGNAL *htmlchangedfunc)(HWND, int, char *, void *) = tmp->signalfunction; | 2473 int (DWSIGNAL *htmlchangedfunc)(HWND, int, char *, void *) = tmp->signalfunction; |
2474 | 2474 |
2475 return htmlchangedfunc(tmp->window, DW_POINTER_TO_INT(mp1), (char *)mp2, tmp->data); | 2475 return htmlchangedfunc(tmp->window, DW_POINTER_TO_INT(mp1), (char *)mp2, tmp->data); |
2476 } | |
2477 } | |
2478 break; | |
2479 case WM_USER+102: | |
2480 { | |
2481 if(hWnd == tmp->window) | |
2482 { | |
2483 int (DWSIGNAL *clickfunc)(HWND, void *) = tmp->signalfunction; | |
2484 | |
2485 return clickfunc(tmp->window, tmp->data); | |
2476 } | 2486 } |
2477 } | 2487 } |
2478 break; | 2488 break; |
2479 } | 2489 } |
2480 } | 2490 } |