Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Can I set a customized CListCtrl to a CListView class

Posted on 2010-08-13
3
Medium Priority
?
601 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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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…
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 lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

916 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