|
-
Mar 14th, 2013, 09:44 AM
#1
Thread Starter
Lively Member
TreeView & Unicode
I am trying to display Unicode characters in TreeView. Eg. something like this: ChrW$(&H439) & ChrW$(&H446) & ChrW$(&H44F) & ChrW$(&H431) & ChrW$(&H433).
I have found API call that enables TreeView to show Unicode. Unfortunately, it appears that it only works for 5.0 version of TreeView (I guess it was included in old Office versions like 2003 and older), and 6.0 version (present, used in Office 2010 & 2013) is not working with this API. Using older version in new Office is not possible (at least not in an easy way), because you need to licence it.
Question is - is there any way to display Unicode characters in latest TreeView version?
API that does not work:
Code:
Private Const CCM_FIRST As Long = &H2000
Private Const TVM_SETUNICODEFORMAT As Long = (CCM_FIRST + 5&)
Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByRef lParam As Any) As Long
SendMessage TreeView1.hwnd, TVM_SETUNICODEFORMAT, 1, ByVal 0
-
Mar 15th, 2013, 07:27 AM
#2
Thread Starter
Lively Member
Re: TreeView & Unicode
Nobody has any suggestions?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|