edit control

Robert Shearman rob at codeweavers.com
Thu Sep 9 08:39:13 CDT 2004


Ulrich Czekalla wrote:

>ChangeLog:
>        Ulrich Czekalla <ulrich at codeweavers.com>
>        Allow copying selection when control is read only
>  
>
>------------------------------------------------------------------------
>
>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;
> 
>
That read-only check looks completely bogus to me as the code below 
already checks for ES_READONLY.

Rob





More information about the wine-devel mailing list