Link to home
Start Free TrialLog in
Avatar of devendersys
devendersys

asked on

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

Avatar of mahesh1402
mahesh1402
Flag of India image

may be by custom draw this may help :http://www.codeproject.com/listctrl/lvcustomdraw.asp

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

-MAHESH
Avatar of devendersys
devendersys

ASKER

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
it seems there is no default way..owner drawn control is seems way to implement this.

-MAHESH
Can we use CustomDraw() with OnGetDispInfo()?
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
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
ASKER CERTIFIED SOLUTION
Avatar of mahesh1402
mahesh1402
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think its time to try it now. i will let you know the results.

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

Thanks
devender