[comctl32] enable ipaddress

Robert Reif reif at earthlink.net
Wed Dec 28 18:00:53 CST 2005


Create ipaddress in enabled state.
-------------- next part --------------
Index: dlls/comctl32/ipaddress.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/ipaddress.c,v
retrieving revision 1.43
diff -p -u -r1.43 ipaddress.c
--- dlls/comctl32/ipaddress.c	30 Aug 2005 10:07:17 -0000	1.43
+++ dlls/comctl32/ipaddress.c	28 Dec 2005 23:58:18 -0000
@@ -189,7 +189,7 @@ static LRESULT IPADDRESS_Create (HWND hw
     edit.bottom = rcClient.bottom - 2;
 
     infoPtr->Self = hwnd;
-    infoPtr->Enabled = FALSE;
+    infoPtr->Enabled = TRUE;
     infoPtr->Notify = lpCreate->hwndParent;
 
     for (i = 0; i < 4; i++) {
@@ -208,6 +208,7 @@ static LRESULT IPADDRESS_Create (HWND hw
         part->OrigProc = (WNDPROC)
 		SetWindowLongPtrW (part->EditHwnd, GWLP_WNDPROC,
 				(DWORD_PTR)IPADDRESS_SubclassProc);
+        EnableWindow(part->EditHwnd, infoPtr->Enabled);
     }
 
     return 0;


More information about the wine-patches mailing list