AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Child of SetParent lost to oblivion?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Mistrel



Joined: 12 Sep 2005
Posts: 188

PostPosted: Tue Aug 21, 2007 8:29 pm    Post subject: Child of SetParent lost to oblivion? Reply with quote

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
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 5878

PostPosted: Tue Aug 21, 2007 9:27 pm    Post subject: Re: Child of SetParent lost to oblivion? Reply with quote

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.

Smile
Back to top
View user's profile Send private message
Mistrel



Joined: 12 Sep 2005
Posts: 188

PostPosted: Tue Aug 21, 2007 9:44 pm    Post subject: Reply with quote

Excellent. Thank you. Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group