DJ_AM_Juicebox
asked on
CListCtrl - set item text as hidden or transparent?
Hi,
Is there a way with a CListCtrl to set the state of a particular item so that its text is transparent or hidden?
I have a CListCtrl that implements sorting based on the text in the cells. In my first column, I put check mark boxes so sorting doesn't work for it. I was thinking I could just place a "1" or "0" for the text in those cells and then sorting will work, but I'd like the "1" or "0" to be hidden from the user.
Thanks
Is there a way with a CListCtrl to set the state of a particular item so that its text is transparent or hidden?
I have a CListCtrl that implements sorting based on the text in the cells. In my first column, I put check mark boxes so sorting doesn't work for it. I was thinking I could just place a "1" or "0" for the text in those cells and then sorting will work, but I'd like the "1" or "0" to be hidden from the user.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You already know if the item is checked or not (else how do you set it as checked). So if you want to sort on column zero (for example that column has the check boxs) then you don't use the text in that column - you use the state (checked or not).
Is that text in a separate text box? If so, that would be quite easy.