Click to See Complete Forum and Search --> : Checkbox in CListCtrl


benjackson
April 5th, 2000, 01:37 PM
I posted that I have a class that does this (badly) and I thought that someone might have a better implementation and put that up.

vprashu
April 6th, 2000, 11:54 AM
I think the CCheckListBox MFC Class does the job.
Prashanth

DanielK
April 7th, 2000, 12:44 PM
One of you got mixed up. A ListBox is the standard control that you can see in the Index part of MSDN. A ListCtrl is what you can see in the windows explorer(Icon with text).

---===---
I'm not here for the rates, but rating a post is a good way for me to know how much i helped.
---===---
Daniel

benjackson
May 11th, 2000, 12:15 PM
Yeah, thats what I meant. You could also use the grid control.

Sammy D'Souza
August 17th, 2000, 02:20 PM
Hi
If you want Checkboxes to appear in your list control, maybe you could use the Extended List View Style - LVS_EX_CHECKBOXES. The code could be like
DWORD dwStyle = ListView_GetExtendedListViewStyle(m_ctrlCbkList);

ListView_SetExtendedListViewStyle(m_ctrlCbkList, dwStyle | LVS_EX_CHECKBOXES);

You might like to look up ListView_SetExtendedListViewStyle on MSDN

Warm regards
-sammy
PS: I'm not sure why this post was under 'Articles Suggestions'