Display 260 characters in ClistCtrl
-
-
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.
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:
-
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:
-
That is ok. But when i enter exactly 260 characters why only 259 characters are displayed. Why the 260th character is not displayed.
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;