Solved

Checkboxes in Listview\Treeview

Posted on 2000-04-19
2
393 Views
Last Modified: 2012-05-04
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
0
Comment
Question by:WinC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Expert Comment

by:MT_MU
ID: 2731327
For a list view....

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

ListView_SetExtendedListViewStyle(hList.m_hWnd,LVS_EX_CHECKBOXES);


0
 
LVL 8

Accepted Solution

by:
gelbert earned 50 total points
ID: 2731731
Treeview:
http://codeguru.developer.com/treeview/advanced_checkbox.shtml
You can implement checkboxes for listview the same way
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question