richedit: Fixed bug preventing bold from being set with EM_SETCHARFORMAT

Dylan Smith dylan.ah.smith at
Wed Jun 25 10:47:37 CDT 2008

Previously bold needed to be set by setting CFM_WEIGHT in the
CHARFORMAT2 structure, and then setting the appropriate wWeight value.
This approach isn't even supported in version 3.0 of the richedit

Now bold can be set/unset properly for Windows or Wine using CFE_BOLD in
dwEffects and with CFM_BOLD set in the dwMask flag.

This bug could easily be seen in Wine's wordpad by using the bold button
on the toolbar, however wordpad would work when using the native
 dlls/riched20/style.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-richedit-Fixed-bug-preventing-bold-being-set-wit.diff.txt

More information about the wine-patches mailing list