Solved

Checkboxes in Listview\Treeview

Posted on 2000-04-19
2
386 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
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now