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: September 10, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Modern mobile applications connect systems-of-engagement (mobile apps) with systems-of-record (traditional IT) to deliver new and innovative business value. But the lifecycle for development of mobile apps is also new and different. Emerging trends in mobile development call for faster delivery of incremental features, coupled with feedback from the users of the app "in the wild". This loop of continuous delivery and continuous feedback is …

  • Live Event Date: September 17, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Another day, another end-of-support deadline. You've heard enough about the hazards of not migrating to Windows Server 2008 or 2012. What you may not know is that there's plenty in it for you and your business, like increased automation and performance, time-saving technical features, and a lower total cost of ownership. Check out this upcoming eSeminar and join Rich Holmes, Pomeroy's practice director of virtualization, as he discusses the …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds