EN_CHANGE to change the char to *
I did it that way the last time and it was more trouble than it was worth... because I had a hardtime position the caret in the proper location...
also the call is recursive because SetWindowText(...) will also send another EN_CHANGE....
it is somewhat of a bad dream to do it that way....
Re: EN_CHANGE to change the char to *
Quote:
Originally posted by zMan
I did it that way the last time and it was more trouble than it was worth... because I had a hardtime position the caret in the proper location...
also the call is recursive because SetWindowText(...) will also send another EN_CHANGE....
it is somewhat of a bad dream to do it that way....
Yes, that makes sense. You should've done tested the ascii value to see if it was "*" first and if it was then that would end the recursion (because after the change it would override that option, Understand?). So, that would work out. But, you are right, just use ES_PASSWORD style. It would be easy if we were designing the control from the start to enable this and it would make it simple. So, don't think it's a short-cut, just use that constant...
Garfield