Posts: 331
	Threads: 60
	Joined: May 2006
	
	
 
	
	
		If I have the child windows hwnd how do I set it to its own window(parent).
	
	
	
	
	
 
 
	
	
	
		
	Posts: 12,239
	Threads: 144
	Joined: Dec 2002
	
	
 
	
	
		Macro 
Macro2292 
hwnd=GetAncestor(hwnd 2) ;;top-level parent
;or
hwnd=GetParent(hwnd) ;;direct parent
This is in dialog 'Window', select 'Get related window'.