Checkboxes in Listview\Treeview

Hi,
Can you tell me how to display checkboxes for specified items inside a treeview\listview?
I need to know how to do that.

Thanks
WinCAsked:
Who is Participating?
 
gelbertConnect With a Mentor Commented:
Treeview:
http://codeguru.developer.com/treeview/advanced_checkbox.shtml
You can implement checkboxes for listview the same way
0
 
MT_MUCommented:
For a list view....

CListView::OnInitialUpdate();
      
CListCtrl& hList = GetListCtrl();

ListView_SetExtendedListViewStyle(hList.m_hWnd,LVS_EX_CHECKBOXES);


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.