Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get Vista Aero window padding?
Message
From
12/01/2010 12:11:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to get Vista Aero window padding?
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01443441
Message ID:
01443441
Views:
266
When Vista Aero theme is selected, windows get additional padding added (typically 4 pixels) which isn't accounted for in the built-in SYSMETRIC() fuction. I've tried calling the API GetSystemMetrics() function with the SM_CXPADDEDBORDER (IIRC it is 92) constant, but still get 0 as the result. The following indicates that it's the default behavior -- which doesn't help much.
http://objectmix.com/clipper/749482-getsystemmetrics-sm_cxpaddedborder.html

Anybody know of any way of querying this value? Yes, I'm aware that I could always kludge things and have a user-configurable value, but I'd much prefer to have my program determine this value by itself rather than relying on user to configure this item properly. This is affecting some code where positioning of various elements are now off because of the extra border (since this added border is on the inside of the window dimensions specified, this throws off the positioning of elements that I'm trying to place).
Next
Reply
Map
View

Click here to load this message in the networking platform