Using sub-stings in non report view

I wanted a CListCtrl in icon view mode only (no switch to other view modes), but tried to "store" additional string information in subitems.

So I've useed used ...

        SetItemText (nIndex, 1, strMoreInfo)
and according to the help it returned Nonzero for "successful". but then later on when I tried to use that string with
        GetItemText (iItem, 1);
it return sucessful with nothing. :( The string was gone.

To make a long story short, one can't store subitems without a header. So an easy solution is to define two "blind" headers like ...

        for(int iHeader=0; iHeader < 2; iHeader++)
        {
                InsertColumn (iHeader, "header", LVCFMT_LEFT, -1, iHeader);
        }
and you can store whatever string you want in subitem.



Comments

  • nike shoes gives new life span to the old matter. . . golden standards

    Posted by expopmerm on 03/18/2013 06:12pm

    The 9 MostSilly adidas shoes Secrets... And The Ways To Employ them|Efficient report helps you with the intricacies for nike shoes in addition to what one need to do right now.}[url=http://www.nikejapan.asia/]ナイキ air [/url] Strategies to fully understand pretty much everything there is to learn related to nike shoes in Few easy ways. [url=http://www.adidasjapan.biz/]アディダス シューズ[/url] The things other people actually does in the matter of adidas shoes and moreover the actions youhas to do different. Incredible Hidden secret Of How One Can Command gucci Without The Need For Knowledge! [url=http://www.guccijp.asia/]財布 gucci[/url] Cutting edge chloe bags Book Unearths Ideal Way To Dominate The chloe bags Scene [url=http://www.chloejp.biz/]chloe 財布[/url] The best way to master anything there is to understand relating to chanel in 2 easy ways. [url=http://www.chaneljp.biz/]シャネル 財布[/url] The particular way to find out everything that there is to know related to chanel in Few easy steps.True history around nike shoes the industry experts will not want anyone to figure out. [url=http://www.adidasjapan.asia/]アディダス スニーカー[/url] Ok, astounding service. Your organization must check out nike shoes now when it's still available for sale . . . [url=http://www.nikejp.biz/]nike running[/url] nike shoes Fakes ; Perfect nike shoes 'cheat' Which Fools 87.5% of the customers

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

  • Agile methodologies give development and test teams the ability to build software at a faster rate than ever before. Combining DevOps with hybrid cloud architectures give teams not just the principles, but also the technology necessary to achieve their goals. By combining hybrid cloud and DevOps: IT departments maintain control, visibility, and security Dev/test teams remain agile and collaborative Organizational barriers are broken down Innovation and automation can thrive Download this white paper to …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds