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

  • A majority of organizations are operating under the assumption that their network has already been compromised, or will be, according to a survey conducted by the SANS Institute. With many high profile breaches in 2013 occurring on endpoints, interest in improving endpoint security is top-of-mind for many information security professionals. The full results of the inaugural SANS Endpoint Security Survey are summarized in this white paper to help information security professionals track trends in endpoint …

  • Packaged application development teams frequently operate with limited testing environments due to time and labor constraints. By virtualizing the entire application stack, packaged application development teams can deliver business results faster, at higher quality, and with lower risk.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds