Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function
-
Richard Siad the wordline break is invoked only what he tried to resize it i.e. once It has been displayed and user narrows the richedit If there is way to invoke the wordlinebreak proc before the display that would be helpful thanks
I am not aware of any way you could do this, since there are no words that need breaking until they are displayed. You may need to consider other options, both of which require you to do all the display handling yourself: 1. Make your display a fixed width based on the font you are using and the amount of data you wish to display. 2. Rebuild the entire display whenever the Window is resized. It may be possible to implement the above by subclassing the RichEdit control, although I have never done that in MFC.
-
I am not aware of any way you could do this, since there are no words that need breaking until they are displayed. You may need to consider other options, both of which require you to do all the display handling yourself: 1. Make your display a fixed width based on the font you are using and the amount of data you wish to display. 2. Rebuild the entire display whenever the Window is resized. It may be possible to implement the above by subclassing the RichEdit control, although I have never done that in MFC.
Richard My display is fixed width as it is Courier new I know that exact number of characters in the width of a line (wonder if ShowWindow(SW_HIDE) would drive edit editwordbreakproc) I am just wondering if there is another way and causes line breaks other than 0x0a, 0x0d, 0x0c I have to think about this