richedit: Fixed bug preventing bold from being set with EM_SETCHARFORMAT.
commitcb1d7becf9057e87b736f4590b89b27409f86ee7
authorDylan Smith <dylan.ah.smith@gmail.com>
Wed, 25 Jun 2008 15:47:37 +0000 (25 11:47 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 26 Jun 2008 19:18:20 +0000 (26 21:18 +0200)
tree89aadd9a5103d45d8cc7d3330399143c555cf8a2
parent60757ca6d5ceb79a5599ca5be0c17225d9a86555
richedit: Fixed bug preventing bold from being set with EM_SETCHARFORMAT.

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
control. 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.
dlls/riched20/style.c