1. RE: How to set Wrap in Richedit in runtime

aku at inbox.as wrote:
> How to set Word Wrap in Richedit in runtime ?
> (if can, i suggest to add to win32lib)
> 
> Thanks.
> 
> 

Hi Aku,
this can't be done unfortunately. The Windows DLL that manages richedit 
controls refuses to change from word-wrap to non-word-wrap and visa 
versa at runtime. There is no message you can send to the DLL do this. 
I've tried many different things and can;t make it happen. The microsoft 
documentation has nothing to say on the subject.

The only thing I can suggest is that you have two richedit controls 
located at the same spot on the window, and just keep one visible at any 
time. To switch to word-wrap, set the non-word-wrap control to invisible 
and make visible the word-wrap control.

------
sorry,
Derek

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu