richedit: Silence fixme for WM_STYLECHANGING & WM_STYLECHANGED.

Dylan Smith dylan.ah.smith at gmail.com
Thu Sep 24 08:02:51 CDT 2009


I have tried changing the different styles, and have noticed that they
don't have any effect.  The initial styles are the ones actually used,
which is why they are stored internally for the editor.

The regular edit control has similar behaviour for storing the initial
styles internally, except it responds to the WM_STYLECHANGED for styles
that are not supported by the richedit control (ES_UPPERCASE,
ES_LOWERCASE, and ES_NUMBER).
---
 dlls/riched20/editor.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
-------------- next part --------------
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 4726d4e..09e3de6 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -141,8 +141,8 @@
   + WM_PASTE
   + WM_SETFONT
   + WM_SETTEXT (resets undo stack !) (proper style?) ANSI&Unicode
-  - WM_STYLECHANGING
-  - WM_STYLECHANGED (things like read-only flag)
+  + WM_STYLECHANGING (seems to do nothing)
+  + WM_STYLECHANGED (seems to do nothing)
   + WM_UNICHAR
   + WM_VSCROLL
 
@@ -2997,8 +2997,6 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
   UNSUPPORTED_MSG(EM_SETTABSTOPS)
   UNSUPPORTED_MSG(EM_SETTYPOGRAPHYOPTIONS)
   UNSUPPORTED_MSG(EM_SETWORDBREAKPROCEX)
-  UNSUPPORTED_MSG(WM_STYLECHANGING)
-  UNSUPPORTED_MSG(WM_STYLECHANGED)
 
 /* Messages specific to Richedit controls */
 


More information about the wine-patches mailing list