Skip to content

Fix SYSMETRIC() by going through GetSystemMetrics() - #2065

Open
Irwin1985 wants to merge 1 commit into
devfrom
fix/vfp-sysmetric-getsystemmetrics
Open

Fix SYSMETRIC() by going through GetSystemMetrics()#2065
Irwin1985 wants to merge 1 commit into
devfrom
fix/vfp-sysmetric-getsystemmetrics

Conversation

@Irwin1985

Copy link
Copy Markdown
Contributor

Fixes #1864

I was trying to figure out why some SYSMETRIC() values didn't match VFP and found it in the help: the Remarks say SYSTEMETRIC() is basically GetSystemMetrics(). We weren't calling it. Every element was approximated with a .NET SystemInformation property.

I ran all 34 elements against a real VFP 9 on my machine and 15 came out wrong. Changed the SWITCH to call GetSystemMetrics() with the matching SM_ index, and now 32 of 34 match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant