Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CallWindowProc and WM_GetMinMaxInfo
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01392525
Message ID:
01393387
Views:
54
As a wrap up to this thread if anyone uses it for reference down the road.

This is probably a rookie mistake, but it's important to note that VFP's "ThisForm.Width" and "ThisForm.Height" reference only the inner portion of the form, not the titlebar and window borders. The WM_SIZING rectangle values for the form DO include these items. You can add SYSMETRIC(9) + (SYSMETRIC(4)*2) to your ThisForm.Height value to match and add (SYSMETRIC(4)*2) to match your ThisForm.Width value.

If you're doing percentage calculations from a component inside the form to the form itself, these differences can really throw you off.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform