Solved

Can I set a customized CListCtrl to a CListView class

Posted on 2010-08-13
3
558 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
[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
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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
method notes when mouse over in eclipse 5 90
noX challenge 17 134
wordmultiple challenge 12 156
How do I get Window Title of all opened process? 4 35
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

749 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