Solved

Checkboxes in Listview\Treeview

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Handling string inputs in C/Linux 23 179
typedef std::deque<BYTE> ByteVector is broken in vs2012 23 82
White board coding practice 3 80
How can i compile this github project?? 2 75
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

920 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