Mercurial > dwindows
diff win/dw.c @ 150:2a0d7b57a6da
Removed unnecessary parameters from dw_main().
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 24 Oct 2002 15:53:27 +0000 |
parents | b479002e013f |
children | 656de0c52c56 |
line wrap: on
line diff
--- a/win/dw.c Thu Oct 24 05:39:00 2002 +0000 +++ b/win/dw.c Thu Oct 24 15:53:27 2002 +0000 @@ -18,10 +18,6 @@ #include <time.h> #include "dw.h" -/* this is the callback handle for the window procedure */ -/* make sure you always match the calling convention! */ -int (*filterfunc)(HWND, UINT, WPARAM, LPARAM) = 0L; - HWND popup = (HWND)NULL, hwndBubble = (HWND)NULL, hwndBubbleLast, DW_HWND_OBJECT = (HWND)NULL; HINSTANCE DWInstance = NULL; @@ -1185,9 +1181,6 @@ if(msg == WM_HSCROLL) msg = WM_VSCROLL; - if(filterfunc) - result = filterfunc(hWnd, msg, mp1, mp2); - if(result == -1) { /* Avoid infinite recursion */ @@ -2782,18 +2775,11 @@ /* * Runs a message loop for Dynamic Windows. - * Parameters: - * currenthab: The handle to the current anchor block - * or NULL if this DW is handling the message loop. - * func: Function pointer to the message filter function. - */ -void dw_main(HAB currenthab, void *func) + */ +void dw_main(void) { MSG msg; - /* Setup the filter function */ - filterfunc = func; - _dwtid = dw_thread_id(); while (GetMessage(&msg, NULL, 0, 0))