Does the RichTextBox implemented CFM_SHADOW

  • Thread starter Thread starter Academia
  • Start date Start date
A

Academia

I been trying to set the RichTextBox font to shadow (using CFM_SHADOW)

It shows under CHARFORMAT2 Structure's documentation and in tom's
documentation.

Using CHARFORMAT2 does change the text appearance so I suspect CFM_SHADOW it
is not implemented.

Is it implement?

If it is not implemented my question is how, in general, can I determine
what is implemented in the RichTextBox?



Thanks
 
Academia said:
I been trying to set the RichTextBox font to shadow (using CFM_SHADOW)

It shows under CHARFORMAT2 Structure's documentation and in tom's
documentation.

Using CHARFORMAT2 does change the text appearance so I suspect CFM_SHADOW
it is not implemented.

Is it implement?

If it is not implemented my question is how, in general, can I determine
what is implemented in the RichTextBox?

Read the documentation carefully ;) For example, if you read the
documentation "About Rich Edit Controls" it says in regards to Rich Edit
Version 2:
<quote>
CHARFORMAT2
Added font weight, background color, locale identifier, underline type,
superscript and subscript (in addition to offset), disabled effect. For RTF
roundtripping only, added amount to space between letters, twip size above
which to kern character pair, animated-text type, various effects: font
shadow/outline, all caps, small caps, hidden, embossed, imprint, and
revised.
</quote>

Note the "For RTF roundtripping only"

Likewise if you look atthe documentation for CHARFORMAT2 you will see under
effects it says "the rich edit control stores the value but does not use it
to display text. "

So the answer is to read the documentation carefully ;)
 
Your right. CFE_SHADOW documentation says:
Characters are displayed as shadowed characters. The value does not affect
how the control displays the text.

Thanks
 
Back
Top