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. Measure ITEM ITEMDATA string coming in as Wide Character string

Measure ITEM ITEMDATA string coming in as Wide Character string

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studioperformancetutorial
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.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    Hi I am adding a string to listbox as a 8 bit ansi string for example the string is "8FED90" ending with a null however when the MeasureItem method is called itemData points to the string as wide so it display in memory as 38 00 46 00 45 00 44 00 39 00 30 00 I have Character set as "NOT SET" in my property pages -> Advanced in Visual Studio Thanks

    L 1 Reply Last reply
    0
    • F ForNow

      Hi I am adding a string to listbox as a 8 bit ansi string for example the string is "8FED90" ending with a null however when the MeasureItem method is called itemData points to the string as wide so it display in memory as 38 00 46 00 45 00 44 00 39 00 30 00 I have Character set as "NOT SET" in my property pages -> Advanced in Visual Studio Thanks

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

      That does not make sense. The data pointed to by the MEASUREITEMSTRUCT is what you have set when you create the control. However, whether it is ANSI or Unicode does not matter, as the actual display dimensions will be the same.

      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