Child Position Function
Child Position Function
Is there a Function to get the x and y Coordinates of a Child Window by knowing it's x and y values in the Parent?
			
			
									
									Apart from that Mrs Lincoln, how was the show?
						- netmaestro
 - PureBasic Bullfrog

 - Posts: 8452
 - Joined: Wed Jul 06, 2005 5:42 am
 - Location: Fort Nelson, BC, Canada
 
- netmaestro
 - PureBasic Bullfrog

 - Posts: 8452
 - Joined: Wed Jul 06, 2005 5:42 am
 - Location: Fort Nelson, BC, Canada
 
OK - all you need for the screen coordinates of a window or gadget is to know its window handle. So if you have the child's handle, do:
and var\left, var\top will contain the X and Y coordinates on the desktop for the child window.
			
			
									
									Code: Select all
GetWindowRect_(hwnd, @var.RECT)BERESHEIT
						- 
				Bonne_den_kule
 - Addict

 - Posts: 841
 - Joined: Mon Jun 07, 2004 7:10 pm
 
- netmaestro
 - PureBasic Bullfrog

 - Posts: 8452
 - Joined: Wed Jul 06, 2005 5:42 am
 - Location: Fort Nelson, BC, Canada
 
- 
				Bonne_den_kule
 - Addict

 - Posts: 841
 - Joined: Mon Jun 07, 2004 7:10 pm
 
- 
				WishMaster
 - Enthusiast

 - Posts: 277
 - Joined: Fri Jun 17, 2005 7:13 pm
 - Location: Franconia
 - Contact:
 

