• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1149
  • Last Modified:

MultiLine Text with OnGetDispInfo() in CListCtrl

Hi,

Is this possible in the CListCtrl to display "Multiline Text" when we are loading data via OnGetDispInfo()?

If this is possible, then how can we implement?

Thanks and Regards
Devender

0
devendersys
Asked:
devendersys
  • 5
  • 5
1 Solution
 
mahesh1402Commented:
may be by custom draw this may help :http://www.codeproject.com/listctrl/lvcustomdraw.asp

-MAHESH
0
 
mahesh1402Commented:
This is another one which can handle multiple lines :
http://www.codeproject.com/miscctrl/reportctrl.asp <==

-MAHESH
0
 
devendersysAuthor Commented:
Thanks for reply Mahesh. but above links do'nt solves the problem.

In my List control data is coming very fast about 1 lakh events in one shot. for that i am using OnGetDispInfo(), but i want data in the list control multiline too.

Thanks,
Devender
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
mahesh1402Commented:
it seems there is no default way..owner drawn control is seems way to implement this.

-MAHESH
0
 
devendersysAuthor Commented:
Can we use CustomDraw() with OnGetDispInfo()?
0
 
mahesh1402Commented:
well you may give that try....I think it should work as you are deriving your own control....so problem should not occur to implement OnGetDispInfo() and OnCustomDraw() at time.

-MAHESH
0
 
devendersysAuthor Commented:
Before spending time i want to know whether it will be faster to get the data in the list while we are filling the virtual list ( using GetDispInfo() ) and drawing ( changing column size in CustomDrawn() ).

Since we need data while we are custom drawing for that particular column and at the same moment data is filling up in the virtual list of list control.


Thanks
devender
0
 
mahesh1402Commented:
difference will be there but slight....i dont think customdraw will affect that much on speed as to recognize or it should not make it pretty slow to draw control.

-Mahesh
0
 
devendersysAuthor Commented:
I think its time to try it now. i will let you know the results.

Thanks
devender
0
 
devendersysAuthor Commented:
It works fine, but preformance wise it is bit slow, anyway it is acceptable.

Thanks
devender
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now