Solved

Can I set a customized CListCtrl to a CListView class

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Unix / Linux grid computing 5 127
ORA-01403: no data found 43 83
java ^ examples 8 57
Line meaning 9 77
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: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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 tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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