Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can I set a customized CListCtrl to a CListView class

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

722 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