Results 1 to 2 of 2

Thread: TreeView & Unicode

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2010
    Posts
    118

    Question 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

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jan 2010
    Posts
    118

    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
  •  



Click Here to Expand Forum to Full Width