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

  • You may already know about some of the benefits of Bluemix, IBM's open platform for developing and deploying mobile and web applications. Check out this webcast that focuses on building an Android application using the MobileData service, with a walk-through of the real process and workflow used to build and link the MobileData service within your application. Join IBM's subject matter experts as they show you the way to build a base application that will jumpstart you into building your own more complex app …

  • A modern mobile IT strategy is no longer an option, it is an absolute business necessity. Today's most productive employees are not tied to a desk, an office, or a location. They are mobile. And your company's IT strategy has to be ready to support them with easy, reliable, 24/7 access to the business information they need, from anywhere in the world, across a broad range of communication devices. Here's how some of the nation's most progressive corporations are meeting the many needs of their mobile workers …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds