>Thanks for the reply.
>
>I have to argue that it is a bug, since you can have a perfectly working application when the windows font size is 'normal', but then your app will blow up when the user changes to large or extra large.
BTW, you're right, the code to determine font size doesn't work on my Windows XP either.
The code from MS doesn't return correct result either (returns smaller than smaller, though I set Extra large), so now we just need to find what the constants really mean.
--------------------------------------------------UPDATE-----------------
Looks like in Windows XP different fonts settings are not detected by this function. Try
http://www.news2news.com/vfp/?function=-1&example=188It returns 96/96 on my PC regardless the font settings and all other settings are identical. I didn't restart my computer before each try, though.
If it's not broken, fix it until it is.
My Blog