Determine a container objects size?

Windows specific forum
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Determine a container objects size?

Post by jassing »

Given a windows handle to an object (ie: not a pb handle)
is there a way to determine the objects dimensions?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Determine a container objects size?

Post by Trond »

Code: Select all

GetWindowRect_(hWnd, rect.RECT)
You have to compute the width and height from the left-right and top-bottom values of the rectangle.
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: Determine a container objects size?

Post by jassing »

Perfect! Thanks.
Post Reply