I'm trying to use fork() to create a parent and child process. The parent
will deal with Win32::GUI events, tell the child which buttons etc have
been pressed, the child will carry out the actions and update the
appropriate controls on the window. This way I can allow the main window
to continue reacting to some events (eg refresh, minimise or even quit)
while the processing is performed in the background by the child.
One of the child actions is to bring up a browseforfolder type dialog and
put the selected directories into a text field on the main window. I can
get this to work fine, except that BringWindowToTop doesn't seem to work
after returning from the browse for folder dialog. Instead my main window
disappears behind what ever window happens to be behind it.
Bringing up the browseforfolder dialog does require entering a
win32::gui::dialog loop and my guess is that this is what's causing the
problem. If I alt-tab to the main window it continues to function
If I move the browseforfolder action into the parent everything works fine
but it would be neater to have all screen updating performed by the child
and it seems slightly odd to get the parent to report the selected
directories to the child so it can update the main window.