Solved

Can I set a customized CListCtrl to a CListView class

Posted on 2010-08-13
3
519 Views
Last Modified: 2013-11-20
Can I set a customized CListCtrl to a CListView class ?
The CListView has only GetListCtrl() as member.
I would need a function like SetListCtrl()

Background:
In an existing CListViewEx derived class, i need to show an existing CListCtrl (or CMyListCtrl) object, that has been created outside the CListViewEx derived class.

Thanks
0
Comment
Question by:stev75
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
pgnatyuk earned 500 total points
ID: 33428123
These two articles contain the answer:
CodeGuru. How do I use a derived CListCtrl with a CListView?
http://www.codeguru.com/cpp/controls/listview/introduction/article.php/c919

CodeGuru. Using derived CListCtrl in CListView - Undocumented
http://www.codeguru.com/cpp/controls/listview/introduction/article.php/c901

CListView already contains CListCtrl. Probably, you are supposed to design your application in a way that you will not need to replace the CListCtrl inside. You can clean and fulfill it whenever you need. You can have few CListView's and show or hide them whenever you need.
If you do insist, you will see how to do it in the second article.

0
 

Author Closing Comment

by:stev75
ID: 33429078
Thanks, the 2nd article is what i was looking for!!
0
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 33429219
You are welcome
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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

914 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

13 Experts available now in Live!

Get 1:1 Help Now