2

I have an executable called A.exe (say it is cmd.exe). I want to launch it (and also I want multiple instances of it) inside another window (that is I have to create) like,

alt text

How can I create such a window (program) using win32 or MFC ? Or this isn't possible ? Thank you.....

regards,

Morpheus
  • 1,722
  • 5
  • 27
  • 38

1 Answers1

0

You could do it by hooking window creation and re-directing all creations to be children of the parent process. AFAIK (And I'll probably get told otherwise) window handles are global so you can descend from ANY window, including windows in other processes.

Goz
  • 61,365
  • 24
  • 124
  • 204
  • Hey ! thanks for the answer. Could you please direct me to an article or example ? It would be really.... helpful. – Morpheus Nov 08 '10 at 16:06