Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Unicode Windows ME

Unicode Windows ME

Scheduled Pinned Locked Moved C / C++ / MFC
csharphtmlhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Andy Shaw
    wrote on last edited by
    #1

    Hi; I've been looking (texts, help, forums, the net) for something I assume is simple, but I can't find the "magic formula". I would like to display any old Unicode character in a CRichEditCtrl. The language I support (Pali) uses Unicode characters over a very wide range in Unicode. My MS Word 97 can display the characters (using Insert Character). I can use the Unicode characters in my code, but I can't get them to display properly in the edit control (I get the default symbol). My font is "Arial Unicode MS". Does anyone have a skeleton 1-2-3 for this? BTW: a useful Unicode tool Unibook 3.0 is a free download at http://www.unicode.org/unicode/onlinedat/resources.html Thanks and peace from Andy http://members.home.net/j-andrew-shaw/

    L 1 Reply Last reply
    0
    • A Andy Shaw

      Hi; I've been looking (texts, help, forums, the net) for something I assume is simple, but I can't find the "magic formula". I would like to display any old Unicode character in a CRichEditCtrl. The language I support (Pali) uses Unicode characters over a very wide range in Unicode. My MS Word 97 can display the characters (using Insert Character). I can use the Unicode characters in my code, but I can't get them to display properly in the edit control (I get the default symbol). My font is "Arial Unicode MS". Does anyone have a skeleton 1-2-3 for this? BTW: a useful Unicode tool Unibook 3.0 is a free download at http://www.unicode.org/unicode/onlinedat/resources.html Thanks and peace from Andy http://members.home.net/j-andrew-shaw/

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Hello, the codegurus around the world.;) Try this. This works to show Japanese in CRichEditCtrl.

      BOOL CMyDialog::OnInitDialog()
      {
      CHARFORMAT cf;

      CMyRichEditCtrl.GetDefaultCharFormat(cf);
      
      cf.dwMask = CFM\_CHARSET | CFM\_FACE |CFM\_BOLD | CFM\_SIZE;
      cf.dwEffects = CFE\_BOLD;
      cf.bCharSet = DEFAULT\_CHARSET;
      cf.yHeight =150;
      
      CMyRichEditCtrl.SetDefaultCharFormat(cf);
      

      :cool: :confused: Have a nice day. -Masaaki Onishi-

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups