richedit: Fixed return value for WM_CHAR when the text is readonly.

Dylan Smith dylan.ah.smith at gmail.com
Thu Jan 8 09:44:25 CST 2009


I created a short test to check what was returned by WM_CHAR when the
ES_READONLY style was used since it was marked with a FIXME.

I found the constant from testing the return value from typing
different characters with the readonly style applied. I also checked
multiple version (v1.0, v3.0, and v4.1) to make sure they all
returned the same constant, and they all did.

I am still unsure of what the name of this constant or macro. MSDN
only states that 0 means the message was processed, but doesn't indicate
anything about what should be returned otherwise, so any non-zero number
would probably be suitable.
---
 dlls/riched20/editor.c       |    2 +-
 dlls/riched20/tests/editor.c |   24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-richedit-Fixed-return-value-for-WM_CHAR-when-the.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20090108/43fde29c/attachment.txt 


More information about the wine-patches mailing list