[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 809
  • Last Modified:

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
0
sparkythedog
Asked:
sparkythedog
  • 5
  • 4
2 Solutions
 
mahesh1402Commented:
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
 
mahesh1402Commented:
Just First try to change font of control using SetFont().

MAHESH
0
 
mahesh1402Commented:
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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
AlexFMCommented:
0
 
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
 
mahesh1402Commented:
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
 
mahesh1402Commented:
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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now