-
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
-
Re: TreeView & Unicode
Nobody has any suggestions?