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. Display 260 characters in ClistCtrl

Display 260 characters in ClistCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
help
4 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.
  • R Offline
    R Offline
    ragavan
    wrote on last edited by
    #1

    Hi I ahve a CListCtrl. When i insert a string of 260 characters only 259 characters are visible. 260th character is not getting displayed. Sometimes only 200 characters are getting displayed. The labels are not editable. Please help me on this issue.

    M 1 Reply Last reply
    0
    • R ragavan

      Hi I ahve a CListCtrl. When i insert a string of 260 characters only 259 characters are visible. 260th character is not getting displayed. Sometimes only 200 characters are getting displayed. The labels are not editable. Please help me on this issue.

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      From the docs: "Note that although the list-view control allows any length string to be stored as item text, only the first 260 TCHARs are displayed." Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      R 1 Reply Last reply
      0
      • M Mark Salsbery

        From the docs: "Note that although the list-view control allows any length string to be stored as item text, only the first 260 TCHARs are displayed." Mark

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        R Offline
        R Offline
        ragavan
        wrote on last edited by
        #3

        That is ok. But when i enter exactly 260 characters why only 259 characters are displayed. Why the 260th character is not displayed.

        G 1 Reply Last reply
        0
        • R ragavan

          That is ok. But when i enter exactly 260 characters why only 259 characters are displayed. Why the 260th character is not displayed.

          G Offline
          G Offline
          Gary R Wheeler
          wrote on last edited by
          #4

          I would guess the list control allows 260 characters total for the string. Subtracting one position for the '\0' terminator leaves 259. If you need to get around this limitation, you probably need to use custom draw[^].

          Software Zen: delete this;

          Fold With Us![^]

          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