1. EditWordBreakProc
- Posted by Jonas Temple <jtemple at yhti.net> Oct 20, 2003
- 757 views
I've got a need to limit the number of characters PER LINE in a rich edit to say, 80 characters. I've been nosing around msdn and think I need to code my own EditWordBreakProc for my rich edit. Anyone ever do this and would be willing to share examples? Am I going about this wrong? Thanks, Jonas
2. Re: EditWordBreakProc
- Posted by "Greg Haberek" <g.haberek at comcast.net> Oct 20, 2003
- 738 views
it is my understanding that your EditWordBreakProc function will be called when a richedit needs to break a line.try looking at EM_LINEFROMCHAR, EM_GETLINECOUNT, and EM_GETLINE which you could use in a KeyPress event to trap each line and make sure you don't exceed 80 characters. if you want a quicker reference to the Win32API, try downloading the Win32 help file in the Archive. ~Greg