🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Tracking a Window's absulute client area...

Started by
0 comments, last by Marty 24 years, 6 months ago
Hi all, Can anyone tell me an easy way to retrieve a windows ''absolute'' CLIENT coordinates on the desktop? The only way I can do this at present is by using GetWindowRect() and GetClientRect() and then doing several arithmetic steps to deduce the window''s title & border dimensions. Using GetSystemMetrics(SM_CXBORDER) and GetSystemMetrics(SM_CYBORDER) gives me the value ''1'', which is what is stored in my Display/Attributes properties, but not the number of pixels used. Any help appreciated. Thanks, Marty. martintaylor@lineone.net
Advertisement
do you mean:

SM_CYSCREEN and SM_CXSCREEN ??? The fullscreen height and width.....??

Dance with me......

http://members.xoom.com/CJdeVos/index.htm

This topic is closed to new replies.

Advertisement