Unicode characters in CTreeCtrl

Hi there,
I'M having problems displaying UNICODE characters on a CTreeCtrl. The project is compiled for UNICODE and the UNICODE characters are displayed correctly on other controls from the project, only in the CTreeCtrl the characters are not displayed, just squares instead of characters.

Thanks
sparkythedogAsked:
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.

mahesh1402IT ProfessionalCommented:
It seems the problem is in the font not being able to support the chars in try changing the font of the dialog and font character set .

Also try changing style of dialog to DS_SHELLFONT ( DS_SETFONT+DS_FIXEDSYS )

MAHESH





0
mahesh1402IT ProfessionalCommented:
Just First try to change font of control using SetFont().

MAHESH
0
mahesh1402IT ProfessionalCommented:
also have a look at TreeView_SetUnicodeFormat() function which sends TVM_SETUNICODEFORMAT message to control.

e.g

TreeView_SetUnicodeFormat(m_cTreeCtrl.m_hWnd, TRUE);

MAHESH
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

AlexFMCommented:
0

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
sparkythedogAuthor Commented:
Hi guys,
thanks for your replies, I just changed the font to Arial and the Unicode characters appeared. Duh, I thought to all crazy solutions but only on this one not.

Thanks
0
sparkythedogAuthor Commented:
oops, I wanted to give the points in opposite ways. Mahesh, I posted the similar question on Programming section, reply there please.
0
mahesh1402IT ProfessionalCommented:
give the link.

BTW how you solved your problem ?

MAHESH
0
sparkythedogAuthor Commented:
http://www.experts-exchange.com/Programming/Q_21803335.html

I just changed the font for the dialog to Arial. It worked with SetFont for the treectrl without changing the font for the whole dialog as well.

Thanks
0
mahesh1402IT ProfessionalCommented:
So what was there in my first comment ?

>>It seems the problem is in the font not being able to support the chars in try changing the font of the dialog and font character set .


MAHESH
0
sparkythedogAuthor Commented:
Yeah, the 1st comment

A-
0
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.