I've done this successfully in Finder by comparing:
GetWindowBounds(kWindowStructureRgn)
with
GetWindowBounds(kWindowGlobalPortRgn)
I don't believe I tried GetWindowStructureWidths, but I don't see any
open bugs against it. -- What was wrong with the values you got back
from GetWindowBounds?
Cheers,
--Dave
On Mar 30, 2005, at 4:18 PM, Jonathan Johnson wrote:
I can't for the life of me figure out how to determine the width of
the implicit border for a metal window. It's roughly 3 pixels on
each side, but I really don't want to handle this by hard coding in
the value. GetWindowStructureWidths doesn't return the proper
value, nor do any constants passed into GetWindowBounds/
GetWindowRegion.
Any ideas on how to figure this width out?
Thanks in advance,
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden