CListCtrl??? (this one is HARD!)

This is a discussion on CListCtrl??? (this one is HARD!) within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I'm using: Code: LVITEM lvi; memset(&lvi, 0, sizeof(LVITEM)); lvi.mask=LVIF_TEXT; lvi.iSubItem=5; lvi.pszText=buff; lvi.cchTextMax=19; SendMessage(hLstBar, LVM_GETITEMTEXT, index, (LPARAM)&lvi); MessageBox(NULL,buff,"text",0); To retrieve ...

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    44

    CListCtrl??? (this one is HARD!)

    Hi, I'm using:

    Code:
     LVITEM lvi;
     memset(&lvi, 0, sizeof(LVITEM));
     lvi.mask=LVIF_TEXT;
     lvi.iSubItem=5;
     lvi.pszText=buff;
     lvi.cchTextMax=19;
    
     SendMessage(hLstBar, LVM_GETITEMTEXT, index, (LPARAM)&lvi);
     MessageBox(NULL,buff,"text",0);
    To retrieve the text about a column from a ListControl, which works fine if
    the column is displayed, but how can I make it work if the column isn't
    visible as I just get back no text if the column is hidden as though the
    column doesn't even exist? The columns I'm on about are the ones like XP has
    in the my documents folder if it is set on details view.

    THANKS!!!
    Uni

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,674
    Never heard of that before. Are you sure that it suddenly starts working once the column is visible?

    gg

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    44
    Figured it out...the data is not even there to collect as the column itself is destroyed.

    Thanks anyways

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extracting data from a laptop hard drive
    By DavidP in forum Tech Board
    Replies: 6
    Last Post: 06-13-2009, 07:02 AM
  2. Hard drives - capacity and speed
    By ulillillia in forum Tech Board
    Replies: 5
    Last Post: 06-01-2007, 09:55 AM
  3. Detect SCSI Hard Drive Serial Number
    By mercury529 in forum Windows Programming
    Replies: 3
    Last Post: 10-17-2006, 06:23 PM
  4. Replies: 2
    Last Post: 07-06-2005, 07:11 PM
  5. Trinary Hard Drive
    By nickname_changed in forum Tech Board
    Replies: 14
    Last Post: 05-13-2005, 10:01 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21