Link to home
Start Free TrialLog in
Avatar of BaritoneH
BaritoneHFlag for United States of America

asked on

Add multiline to ClistBox in MFC C++

I know how to use ClistBox and AddString to add one line of string at a time.  However, is there a easy way to automatically add multiple lines to the list box if a string is embedded with "\n".

Example:

"First Line of Text \n Second Line \n  Third Line \n" in the Cstring

With MFC in C++, Is there a function that I can use to automatically parse this line into three lines and add three separate lines to the ClistBox.   Thanks.
SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland 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
ASKER CERTIFIED SOLUTION
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