MFC app as a child window?
David W. Gillett -- DGILLETT@expertedge.com
Thursday, February 15, 1996
I'm using MSVC 1.52 for this, trying to write a non-MFC DLL that
wraps up a thrid-party MFC App (part of Adobe's Acrobat suite) as a child
window for our applications, and controlling it via DDE. And I'm
running into problems. O/S for this project is WfWG 3.11.
The "minor" problem is that calling DdeUninitialize will crash the
machine (hang for 45 seconds, then spontaneous reboot) if I'm trying
to debug under CodeView.
The "major" problem is some bizarro behaviour when I send a command
to the app after wrapping it in a child window. My hunch is that the
search for command handlers isn't stopping at the app's main frame
window, but is continuing on into it's new parent window which isn't
MFC and isn't even in the same task.
Is this a reasonable hunch? Is there an easy fix?
Dave
David W. Gillett -- DGILLETT@expertedge.com
Tuesday, February 20, 1996
> I'm using MSVC 1.52 for this, trying to write a non-MFC DLL that
> wraps up a thrid-party MFC App (part of Adobe's Acrobat suite) as a child
> window for our applications, and controlling it via DDE. And I'm
> running into problems. O/S for this project is WfWG 3.11.
>
> The "major" problem is some bizarro behaviour when I send a command
> to the app after wrapping it in a child window. My hunch is that the
> search for command handlers isn't stopping at the app's main frame
> window, but is continuing on into it's new parent window which isn't
> MFC and isn't even in the same task.
> Is this a reasonable hunch? Is there an easy fix?
Things have become much better since I now change the style of the
Acrobat window from WS_OVERLAPPED to WS_POPUP before I start treating
it as a child window.
> The "minor" problem is that calling DdeUninitialize will crash
> the machine (hang for 45 seconds, then spontaneous reboot) if I'm
> trying to debug under CodeView.
I think this has gone away, now that I no longer try to retrieve
the last error after DdeUnitinitialize.
Thanks anyway.
Dave
| Вернуться в корень Архива
|