Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want Insert some text data in CXTListCtrl in c++ (mfc),but i created that CXTListCtrl in LVS_ICON format because i want some images to display on that CXTListCtrl. Can anyone help me ?

What I have tried:

m_listCrl2 = DEBUG_NEW CXTListCtrl;
if(!m_listCrl2->Create(WS_CHILD|WS_VISIBLE| LVS_ICON ,CRect (62,106,730,405),this,IDC_LIST_CTRL_1))

and i inserted images when i am inserting text it is showing in ICON format.
Posted
Updated 4-Apr-16 22:29pm

1 solution

If you have an icon listcontrol, you must provide always an icon, so you must provide a clear or white icon for that and use the text parameter.

Read for details in that article about Using the List Control.
 
Share this answer
 
Comments
Rais Shaikh 5-Apr-16 4:56am    
Thanks
Rais Shaikh 8-Apr-16 6:28am    
I tried that already but i wan't like group Group1 text then images Group2 and so on ..

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