edit control

Ulrich Czekalla ulrich.czekalla at utoronto.ca
Thu Sep 9 08:07:51 CDT 2004


ChangeLog:
        Ulrich Czekalla <ulrich at codeweavers.com>
        Allow copying selection when control is read only
-------------- next part --------------
Index: dlls/user/edit.c
===================================================================
RCS file: /home/wine/wine/dlls/user/edit.c,v
retrieving revision 1.1
diff -u -r1.1 edit.c
--- dlls/user/edit.c	31 Aug 2004 01:10:08 -0000	1.1
+++ dlls/user/edit.c	9 Sep 2004 13:01:26 -0000
@@ -3604,7 +3604,8 @@
 
 	/* Protect read-only edit control from modification */
 	if(es->style & ES_READONLY)
-	    return;
+            if (c != 0x03) /* Allow copying selection */
+	        return;
 
 	control = GetKeyState(VK_CONTROL) & 0x8000;
 


More information about the wine-patches mailing list