IP Address Control: Window Class Fix

Robert Shearman rob at codeweavers.com
Mon Sep 13 15:26:05 CDT 2004


Changelog:
Set class hbrBackground and style to the same as native.
-------------- next part --------------
Index: wine/dlls/comctl32/ipaddress.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/ipaddress.c,v
retrieving revision 1.38
diff -u -p -r1.38 ipaddress.c
--- wine/dlls/comctl32/ipaddress.c	25 Aug 2004 17:33:01 -0000	1.38
+++ wine/dlls/comctl32/ipaddress.c	13 Sep 2004 19:48:59 -0000
@@ -565,12 +565,12 @@ void IPADDRESS_Register (void)
     WNDCLASSW wndClass;
 
     ZeroMemory (&wndClass, sizeof(WNDCLASSW));
-    wndClass.style         = CS_GLOBALCLASS;
+    wndClass.style         = CS_GLOBALCLASS | CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;
     wndClass.lpfnWndProc   = (WNDPROC)IPADDRESS_WindowProc;
     wndClass.cbClsExtra    = 0;
     wndClass.cbWndExtra    = sizeof(IPADDRESS_INFO *);
     wndClass.hCursor       = LoadCursorW (0, (LPWSTR)IDC_IBEAM);
-    wndClass.hbrBackground = GetStockObject(WHITE_BRUSH);
+    wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
     wndClass.lpszClassName = WC_IPADDRESSW;
 
     RegisterClassW (&wndClass);


More information about the wine-patches mailing list