Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine the REAL width of a form window's borde
Message
 
To
16/11/1997 19:02:03
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00060570
Message ID:
00060643
Views:
25
Thanks Vlad, that's just what I was looking for. Shucks, I was just starting to think I could free up some disk space by taking win32api.hlp offline. Silly me.

Mike

>Take a look to the following Win32 API functions:
>
>ClientToScreen, ScreenToClient, GetClientRect, GetWindowRect.
>
>Vlad
>
>>I'm trying to figure out how to determine the height and width of a window's borders, taking into account such complications as the presence of a menu and variable toolbar docking states, as well as the window title, constant "border" thickness, etc. To put it differently, I want to find the coordinates of the origin of the window's interior top left corner relative to its exterior top left corner.
>>
>>Is there any way to do this in Visual FoxPro? Use of sysmetric() doesn't account for toolbars, and it also requires that I make an involved computation at best. WROWS() and WCOLS() + FONTMETRIC() may allow me to compute the actual interior size, but it won't determine the origin position, because this depends on toolbar docking variations.
>>
>>The ideal solution would be a function that simply allows me to convert from interior form window coordinates into Windows desktop coordinates.
>>
>>Any help on this would be greatly appreciated. Replies via e-mail preferred, if possible (as well as posting to this group).
>>
>>Mike Asherman
>>Email: mda@gis.net
Montage

"Free at last..."
Previous
Reply
Map
View

Click here to load this message in the networking platform