| View previous topic :: View next topic |
| Author |
Message |
Mistrel
Joined: 12 Sep 2005 Posts: 188
|
Posted: Tue Aug 21, 2007 8:29 pm Post subject: Child of SetParent lost to oblivion? |
|
|
I noticed that if I set a process as a child of a gui window and then close that gui window the child is still a running process but is no longer visible.
Do I have to run my own cleanup for this situation? |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5878
|
Posted: Tue Aug 21, 2007 9:27 pm Post subject: Re: Child of SetParent lost to oblivion? |
|
|
| Mistrel wrote: | | I noticed that if I set a process as a child of a gui window and then close that gui window the child is still a running process but is no longer visible. |
Before closing the Parent GUI, call SetParent() again for the child by passing the Parent hWnd as 0 ( Null ). This will release the parentage.
 |
|
| Back to top |
|
 |
Mistrel
Joined: 12 Sep 2005 Posts: 188
|
Posted: Tue Aug 21, 2007 9:44 pm Post subject: |
|
|
Excellent. Thank you.  |
|
| Back to top |
|
 |
|