Hi guys,

Passing the handle of a window's child control (e.g. a button or a
text field) to any one of the Win.Left(), Win.Top(), Win.Width() or
Win.Height() services will return information relative to that
control.

The Win.Width() and Win.Height() services however, when used this way,
return the screen coordinates of the control (i.e. their position
relative to the top-left corner of the entire screen) and not their
relative coordinates (i.e. their position relative to the top-left of
the �client area� of the window).

Is there any easy way of converting these values to relative ones?
Unfortunately it's not as simple as subtracting the left and top
coordinates of the window from these values since you've got window
borders, captions and menu bars to worry about, none of which are
guaranteed to be there.

-- 

Alex Peters / Melbourne, Australia
PowerPro v4.1.00 / Windows XP



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to