Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems to set the number of characters per line

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
I make a MDI application based on the CEditView with Visual C++ 6.0.
it's a programm to make operation with binary data.
In my ChildWindows, I can just have string with '0' and '1'.

When I write data in my windows, at the end of the line the cursor go to the next line.
I would like to make a function to set the number of characters per line.

For example, we have that in the child window :
00001100011110011

With the function I would make, the user could type '8' for example and we will have that in the child window :
00001100
01111001
1


I don't know which member function I can use to make this.

If someone could help me, It would be appreciate

Thanks for help
 
One simple solution would be to just add a '\r\n' every x number of characters you send to the child window to display. MYenigmaSELF:-9
myenigmaself@myenigmaself.gaiden.com
"If debugging is the process of removing bugs, then programming must be the process of putting them in." --Dykstra
 
Thanks, but I have another problem.
I would like that the user can make lines with 1000 characters for example (we could all see with a scrollbar in the child window)
for the time being, when we are at the end of the child window, characters go to the next line.
How can I make to resolve this problem ?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top