Small Fixes

kenon at go2.pl kenon at go2.pl
Wed May 9 20:34:54 CDT 2001


Hi,
I had some problems with application Super Memo 8.0 .
It is an old 16-bit app ( hard for debugging :-) ) written in 
Borland Delphi (I guess). I wrote a patch and posted to wine-patches two
months ago ,but that patch was rejected :-( . Now I have much simpler
and I think correct patch solving the problem. 

--- windows/painting.c_or	Wed Mar 28 16:39:17 2001
+++ windows/painting.c	Sat May  5 14:19:43 2001
@@ -1710,7 +1710,7 @@
     {
         /* send palette change notification */
         HWND hWnd = WindowFromDC( hDC );
-        if (hWnd) SendMessageA( HWND_BROADCAST, WM_PALETTECHANGED, hWnd, 0L);
+        if (hWnd) PostMessageA( HWND_BROADCAST, WM_PALETTECHANGED, hWnd, 0L);
     }
     return realized;
 }

There is another bug. When I press <ENTER> the app runs in other way under
wine than it runs under Windoze.
My workaround ( only workaround ) is 

--- controls/edit.c_or	Thu May 10 03:24:06 2001
+++ controls/edit.c	Thu May 10 03:24:10 2001
@@ -849,7 +849,7 @@
 
 	case WM_GETDLGCODE:
 		DPRINTF_EDIT_MSG32("WM_GETDLGCODE");
-		result = DLGC_HASSETSEL | DLGC_WANTCHARS | DLGC_WANTARROWS;
+		result = DLGC_HASSETSEL | DLGC_WANTCHARS | DLGC_WANTARROWS |DLGC_WANTMESSAGE;
 
 		if (lParam && (((LPMSG)lParam)->message == WM_KEYDOWN))
 		{


-- 




More information about the wine-devel mailing list