Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not all system metrics are DPI-dependent #3

Open
gix opened this issue Jul 24, 2024 · 1 comment
Open

Not all system metrics are DPI-dependent #3

gix opened this issue Jul 24, 2024 · 1 comment

Comments

@gix
Copy link

gix commented Jul 24, 2024

The explanations and code make it look like using GetSystemMetricsForDpi is enough. But for whatever reasons not all metrics are DPI-dependent. Notably, SM_CXEDGE, SM_CXBORDER and SM_CXDRAG (and their Y equivalents) are never scaled.

@tringi
Copy link
Owner

tringi commented Jul 24, 2024

Interesting. So GetSystemMetricsForDpi returns scaled value, but Windows uses non-scaled anyway? I'll investigate...

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

No branches or pull requests

2 participants