Click here to Skip to main content
15,887,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to do a special list control (CListBox based). But the items in list box will be another controls - edit control. Do you know any good article about such things? Subclassing of controls into lists? I searched a lot, but didn't found any suitable. Maybe I have used wrong words?
Posted
Updated 5-Jul-10 20:11pm
v2
Comments
Niklas L 6-Jul-10 3:24am    
Please, do not cross post.

Using the keywords CListBox and CEdit in the CP article search your first hit is Editable ListBox Tutorial[^]. If this is not what you are looking for, try the CP Article Search[^] yourself, e.g. with the keywords CListBox and Subclass.
 
Share this answer
 
Comments
Pavel Sokolov 18-Sep-10 21:17pm    
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
you can use the code in "Editable ListBox Tutorial" and just changed the class from CEdit to CRichEditCtrl, and add/change some codes here and there, and it works.
 
Share this answer
 
Looks like an answer, but there CEdit isn't presented always. This control, creates CEdit only while editing the item. I need the CEdit controls always available, because actually I need CRichEdit. Maybe there is some article that will describe, how to redirect control drawing into DrawItem in the CListBox.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900