Hello,
I have this non-Microsoft third party application. With this application,
there is an OCX to use in Visual Basic. When you place this control on a
form, it appears as an icon. When you start automating this control, the
application opens just like you had started the application by running the
EXE.
I want the user to be able to see what is going on in the Application
while my VB App is automating it. I thought maybe I can create some type
of 'Window' - no pun intended - embedded in my form.
I have two different ways to accomplish this with out copmplete success:
1. I tried the OLE Control, with it showing Content instead of
the Icon, but the only thing that will come up the container
is the icon. I can still automate it and manipulate it, but
the application screen does not show up at all.
2. I tried using the SetParent API to bind the application to a
frame on my VB App. Everything works well, except the automated
application shows up shifted and cut off at the right and bottom.
I even tried using the SetWindowPos API to move it, but it didn't
work. Does using the SetParent API, give the Automated App a NEW
Windows Handle?
I would prefer to continue to perfect the second option if possible.
Has anyone done similar work, or can anyone help me on this one?
Thank you in advance,
Matt Brook