Paste in CRichEditCtrl. Help !!!!

I created a text editor based on CrichEditCtrl, but I have a big problem with it.
The CRichEditCtrl does not accept specific characters from specific Font type.
For example : The Font “Arial” with Subset “Mathematical Operators”.
If I copy a character from the above configuration and paste it to the CrichEditCtrl, I get the
“?”, and not the character I was pasting.
This also happens in the “WordPad” application.
The issue is very important for me.
Can someone tell in details what can I do ?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The problem your having is that the default "paste" implementation of a rich edit control doesn't get any font information from the clipboard unless the information on the clipboard is in RTF format.

I'd assume that you're copying the characters from the charmap tool (you don't bother to say), which doesn't provide the RTF format to the clipboard.

So, you get the default font in the control. It sounds like the default font you have doesn't have a rednering for the character you're trying to paste.

You need to write a paste handler that can get available font information from the clipboard. But that still won't work unless the application that copied the information also includes the font info in a format you can accept. So, it's important to know who will be providing the information to your app in typical paste scenarios the user has. Otherwise, you'll not get what you really want.

..B ekiM

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.