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. How to get text of special symbol font?

How to get text of special symbol font?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 Posts 3 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.
  • Y Offline
    Y Offline
    yangdp1
    wrote on last edited by
    #1

    Hi to all. In combobox control, I modified the context font,e.g. AMDGT_IV25,and display is ok.Now I need to get the item text, used the GetDlgItemText function,but the result was unrecognizable code. :(( Thanks!

    J L 2 Replies Last reply
    0
    • Y yangdp1

      Hi to all. In combobox control, I modified the context font,e.g. AMDGT_IV25,and display is ok.Now I need to get the item text, used the GetDlgItemText function,but the result was unrecognizable code. :(( Thanks!

      J Offline
      J Offline
      JoneLe86
      wrote on last edited by
      #2

      just wondering A or W? the third parameter (LPSTR) or (LPWSTR) check that out...

      1 Reply Last reply
      0
      • Y yangdp1

        Hi to all. In combobox control, I modified the context font,e.g. AMDGT_IV25,and display is ok.Now I need to get the item text, used the GetDlgItemText function,but the result was unrecognizable code. :(( Thanks!

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

        You do not use GetDlgItemText() to get a ComboBox item. Please show the code you are using, and what actual results you see.

        Veni, vidi, abiit domum

        Y 1 Reply Last reply
        0
        • L Lost User

          You do not use GetDlgItemText() to get a ComboBox item. Please show the code you are using, and what actual results you see.

          Veni, vidi, abiit domum

          Y Offline
          Y Offline
          yangdp1
          wrote on last edited by
          #4

          Thanks for your answer first:in CCombobox::DrawItem(LPDRAWITEMSTRUCT pDIStruct) function modified the dc font and dc.DrawText(str,itemRect,DT_LEFT|DT_VCENTER|DT_SINGLELINE);//显示文本 second: in mfc interface, display the special symbol.It's ok.e.g. input a "t",and display the special symbol. third: how to get the special symbol string? E.g. is the "t" string,but other string. Sorry!

          L 1 Reply Last reply
          0
          • Y yangdp1

            Thanks for your answer first:in CCombobox::DrawItem(LPDRAWITEMSTRUCT pDIStruct) function modified the dc font and dc.DrawText(str,itemRect,DT_LEFT|DT_VCENTER|DT_SINGLELINE);//显示文本 second: in mfc interface, display the special symbol.It's ok.e.g. input a "t",and display the special symbol. third: how to get the special symbol string? E.g. is the "t" string,but other string. Sorry!

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

            Sorry but I did not understand that at all.

            Veni, vidi, abiit domum

            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