On Fri, May 05, 2000 at 12:21:03PM -0600, Alexandre Julliard wrote:
> CVSROOT: /home/wine
> Module name: wine
> Changes by: [EMAIL PROTECTED] 00/05/05 12:21:03
>
> Modified files:
> controls : edit.c
>
> Log message:
> Susan Farley <[EMAIL PROTECTED]>
> Handle ^C, ^V and ^X in an edit control properly.
I am not sure that this patch is correct. You do:
+ case 0x03: /* Ctrl-C */
+ EDIT_WM_Copy(wnd, es); +
+ break;
+ case 0x16: /* Ctrl-V */ +
+ if (!(es->style & ES_READONLY))
+ EDIT_WM_Paste(wnd, es); +
+ break;
+ case 0x18: /* Ctrl-X */ +
+ if (!(es->style & ES_READONLY))
+ EDIT_WM_Cut(wnd, es); +
+ break;
+
aka hardcoding keys.
Shouldn't this be solved by accelerators in the Edit menu, that in turn
create WM_COPY, WM_CUT, WM_PASTE messages?
Ciao, Marcus