I tried to embed external app, not only notepad but also mstsc (remote desktop), within a tpanel in my delphi application. With CreateProcess i run application and with Windows.SetParent i embed first app window. I get problems with next windows opened by then external app (for instance file-open window in notepad or next login window and main window in remote desktop). Timing a call to enumwindows for the external process is a solution, but enumwindows list every window of the process (also popup & controls). Is there a way identify only process' windows (forms) to be relocated, or a way to embed the process once for all within the panel?
Thanks