WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: SewWrite on April 17, 2020, 10:06:09 AM

Title: How do I make my winbatch wizard run as a child to another application
Post by: SewWrite on April 17, 2020, 10:06:09 AM
I have written a multiple dialog winbatch application that is launched from another windows (C++) application. The programmer of the C++ program has requested that I make my wizard a child to the main program. Does anyone know how to accomplish this? I have a total of 4 dialogs and a status box that runs during processing.

He suggested I look into user32.dll but nothing in there jumps out to me.

Thanks for you help! 
Title: Re: How do I make my winbatch wizard run as a child to another application
Post by: ChuckC on April 20, 2020, 09:39:58 AM
The fact that another process is launching your script means that the other process is the parent process of your script, and your script is running as a child process.

However, what I think they are asking you for is for you to make your script function as if the dialogs that it is displaying were child windows "owned" by the UI in the parent process.  If that description is accurate, then what is being asked for isn't possible across process boundaries.
Title: Re: How do I make my winbatch wizard run as a child to another application
Post by: SewWrite on May 03, 2020, 11:42:25 AM
Okay, it was worth a try. Thanks!