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

  • Confused by all the agile advice? Relax! With the Agile for Dummies eBook by your side you'll learn the fundamentals of agile and how to increase the productivity of your software teams while enabling them to produce higher-quality solutions that better fulfill customer needs much faster.

  • With JRebel, developers get to see their code changes immediately, fine-tune their code with incremental changes, debug, explore and deploy their code with ease (both locally and remotely), and ultimately spend more time coding instead of waiting for the dreaded application redeploy to finish. Every time a developer tests a code change it takes minutes to build and deploy the application. JRebel keeps the app server running at all times, so testing is instantaneous and interactive.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds