1. EditWordBreakProc

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

new topic     » topic index » view message » categorize

2. Re: EditWordBreakProc

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu