Re: Avoiding EN_CHANGE notification from rich edit control?
Portable? You are targeting very specific Microsoft Windows behavior in an MFC newsgroup. Just
exactly what type of portability were you hoping for? :)
Also, the Windows OS uses Unicode natively, so you will have better performance by not forcing a
conversion from the obsolete ANSI char type.
"Woody" <ols6000@sbcglobal.net> wrote in message
news:dcb16547-f277-41cd-b73c-a6b0ba2e2850@f41g2000pra.googlegroups.com...
On Apr 7, 7:27 am, Joseph M. Newcomer <newco...@flounder.com> wrote:
This is incorrect. This sets the ENM_CHANGE mask and CLEARS all the other bits which
might be set. Why do you assume that the mask is 0?
Because I set it to ENM_CHANGE initially, to 0 when I want to disable
it, and I am only using those two bits. Of course in a more general
usage I would only toggle the ENM_CHANGE bit.
Why are you using the obsolete 'char' type and why are you using a fixed array on the
stack of characters, and why are you using sizeof() incorrectly?
I want my code to be more portable, so I avoid CString. I do not need
Unicode, nor internationalization, so I am using the simplest
solution.
You did not state which version of the Rich Edit Control DLL you are using.
riched20.dll is the one loaded by the pgm, according to the VS2005
output.
You did not show where you are setting the variable "titleset".
titleset is set to false in OnInitDialog. I thought this was obvious
from the behavior I described.