Re: Do you think this is possible? by William
William
Thu Feb 24 10:28:12 CST 2005
"Nice Chap" <NiceChap@PlasmaDyne.com> wrote in message
news:Or%23NOgoGFHA.3376@TK2MSFTNGP14.phx.gbl...
>I have a third party 'EXE' that contains a number of windows in it. By
>sending a message to the EXE I can get it open any screen.
What does "open any screen mean"? Open anywhere on the screen?
> But I need this screen to be created in *my* windows app ! or at least to
> set the parent of the created form equal to my MDI ? Is this possible at
> all ?
The docs warn against cross process SetParent() calls.
> In short , what I am trying to achieve is to create something like a
> notepad window within my MDI. Is this possible ?
Trying to use something as a component that is not really a component is
likely only to work marginally well. That said, you may be able to get the
appearance of what you want by postioning the windows and then moving them
in tandem.
Your own window would need to use SetWindowPos() or some such on the third
party window in response to the WM_WINDOWPOSCHANGED notifications that it
receives. In addition, you'd need to subclass the third party window either
to inhibit movement or, if you allow it, to move your window to the
corresponding position.
Regards,
Will