Page 1 of 1

Determine a container objects size?

Posted: Thu Jun 02, 2011 4:08 pm
by jassing
Given a windows handle to an object (ie: not a pb handle)
is there a way to determine the objects dimensions?

Re: Determine a container objects size?

Posted: Thu Jun 02, 2011 7:21 pm
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.

Re: Determine a container objects size?

Posted: Thu Jun 02, 2011 7:31 pm
by jassing
Perfect! Thanks.