controlling another process' windows in a windows form application

  • Thread starter Thread starter Michael Kelley
  • Start date Start date
M

Michael Kelley

A question for the experts,

Is there a way to embed the window of a separate process as a child
window of a windows forms control? I have a Direct X application that
I'd like to embed the main rendering window into a UI interface and
have that UI interface redraw and resize the window accordingly. I've
gotten as far as querying for the process' main window handle, and I
actually have a demo that will resize the window accordingly but it's
not really a child of that control. If anyone has any thoughts or can
point me to example code I'd greatly appreciate it!

Thanks,


Michael
 
A little more information:

I have a Windows Form application that has a picture box control in
it. I grab the picture box control's Handle (HWND), pass it to the
DirectX application and the DirectX application renders into the
window. This looks like it is doing what I want it to do, but I'm not
an expert in windows programming so I'm wondering if anyone sees any
issues with this? Was I just lucky that it seems to work?

Thanks!
 
Back
Top