EM_UNDO message does not return status as per MSDN spec

Krishna Murthy Krishna.Murthy at guptaworldwide.com
Tue May 4 20:37:03 CDT 2004


- Short Description:
Edit Undo (EM_UNDO)operation does not behave same as MS Windows. 

- Long Description:
The EM_UNDO message does not return TRUE always for single line edit
controls 
as per the MSDN specification i.e., the EDIT_EM_Undo() method in file
"wine/controls/edit.c" is not implemented correctly as per the MSDN spec for
EM_UNDO.

As per MSDN spec: For a single-line edit control, the return value should be

always TRUE. For a multi-line edit control (with style ES_MULTILINE), the 
return value is TRUE if the undo operation is successful, or FALSE if the
undo 
operation fails(Readonly control or undo buffer is empty).

Due to the above issue, the applications generated from product Team
Developer 
of Gupta Technologies LLC behave differently on MS windows and Wine.

There also exists a bug 2199

- Patch:
<<EDIT_EM_Undo.patch.diff>>

- Change log Entry:
EDIT_EM_Undo returns TRUE if the control is single-line edit control. If
multi-line control, returns FALSE if read-only control or if undo buffer is
empty.

Krishna Murthy
Gupta Technologies LLC       
TEL: (650) 596-4828
E-mail: Krishna.Murthy at guptaworldwide.com
<mailto:Krishna.Murthy at guptaworldwide.com>  
 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: EDIT_EM_Undo.patch.diff
Type: application/octet-stream
Size: 941 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20040504/f262c8f2/EDIT_EM_Undo.patch.obj


More information about the wine-patches mailing list