--- In [email protected], "brucexs" <bswit...@...> wrote:
>
> > ;notepad now in strange state, e.g. you can close it and it won't ask 
> > ;to save, doesn't appear to know it's document is changed.
 
> How would it know?

It wouldn't.  Just making point (I'll do so in dialog plugin docs) that doing 
just about anything that modifies another process is likely to have unintended 
consequences. 

The consequences of sending an WM_SETTEXT to notepad go a bit further: if the 
edit control is already dirty with typed text, and you send a WM_SETTEXT, old 
text replaced with sent text...and again you're not asked if you want to save 
when you close notepad.  

Thanks for not on WM_SETTEXT/WM_GETTEXT.  But here's another thing: WM_GETFONT 
works, or appears to, across process boundaries.  Which is kinda weird, cause 
it's returning a handle, and I would have thought a handle to an object would 
be meaninless outside the context in which font was created.

 

Reply via email to