HELP:Text size in ListView_SetItemText
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: HELP:Text size in ListView_SetItemText

  1. #1
    Join Date
    Aug 2005
    Location
    Bangalore, India
    Posts
    99

    Smile HELP:Text size in ListView_SetItemText

    Hi,
    I am calling ListView_SetItemText(), with text size as 500 bytes
    ListView_SetItemText(HND, index, 5, buff);//buff = 500 bytes of data
    But it is displaying only 260.
    Howcome?
    any mask or switch to set?
    If i do ListView_SetColumnWidth with 500 pixel width, column width gets updated but still data not displayed more than 260 bytes.

    Regards
    Nikhil

  2. #2
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354

    Re: HELP:Text size in ListView_SetItemText

    What do you mean by 500 bytes of data. If you are not talking of characters, then if the 261th byte is a 0, it will be considered as NULL terminator for the string and that is what probably is showing up.

  3. #3
    Join Date
    Aug 2005
    Location
    Bangalore, India
    Posts
    99

    Smile Re: HELP:Text size in ListView_SetItemText

    Hi,

    What do you mean by 500 bytes of data
    500 data means valid data incremental '1' to '9' in repetition , and no NULL.
    and fort test purpose, data is hard coded in API itself with " "

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center