unicode with polish characters.
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Active-X COM Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=4201
Printed Date: 22 November 2024 at 1:33pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: unicode with polish characters.
Posted By: novastor
Subject: unicode with polish characters.
Date Posted: 11 May 2006 at 8:29pm
Hello,
I am developing Windows App in VC8.0 using Xtremetoolkit version 9.81.
I have unicode folder paths and folders under my volumes. When I try to
view these from explorer I can see them clearly. However when I use my
application tree I cannot. I am using a loop to populate my tree and
list items.
here is sample code:
TCHAR szBuff[MAX_PATH]
GetName(lpsf, lpi,SHGDN_INFOLDER , szBuff);
lvi.pszText = szBuff;
I can succesfully see Indian, Arabic, Chinese, Japanese characters in
my tree/list. However I cannot see these certain characters (also some
similary polish characters): "Русский.txt" Can somebody help.
Thanks,
Sachin Modak.
NovaStor Corporation.
|
Replies:
Posted By: novastor
Date Posted: 05 June 2006 at 5:37pm
Hello,
It seems like I just had to change the tree and list view text fonts. That seem to have fixed the problem. Here is the code
HFONT appFont;
appFont = CreateFont(16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _T("Tahoma"));
PostMessage( WM_SETFONT, (WPARAM)(HFONT)appFont );
Now the problem being, I have about 20 languages ranging from Japanese,
Simple Chinese, Couple indian dialects and major european languages.
The font size of 16 makes it look a little bigger than the classical
windows explorer tree view.
Is this a limitation?
Thanks.
Sachin Modak.
|
Posted By: Oleg
Date Posted: 05 June 2006 at 5:55pm
Hmm.. Do you build with unicode version? If instead 16 you will try 12, what do ou see?
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: novastor
Date Posted: 05 June 2006 at 6:00pm
It will display polish characters right, however it will show some
indian dialects as if in some sort of a patch. a label sort of.
Sachin Modak.
NovaStor Coporation.
|
Posted By: Oleg
Date Posted: 05 June 2006 at 6:02pm
So...Do you build with unicode version ?
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: novastor
Date Posted: 05 June 2006 at 6:06pm
Yes I build with unicode version.
|
Posted By: novastor
Date Posted: 05 June 2006 at 6:25pm
I am attaching screenshots with font size 12 and 16 font type Tahoma.
Sachin Modak.
|
Posted By: Oleg
Date Posted: 05 June 2006 at 7:32pm
Can you also attach how it all show explorer....
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: novastor
Date Posted: 05 June 2006 at 7:39pm
Here it is...
Sachin Modak.
|
|