GetSystemMetrics() returns different results for .NET 4.5 & .NET 4.0

后端 未结 2 505
有刺的猬
有刺的猬 2020-12-02 00:20

During a .NET 4.0 -> .NET 4.5 application migration process I\'ve discovered an extremely strange behavior. I\'ve been able to track this issue down to this short code snipp

2条回答
  •  离开以前
    2020-12-02 00:46

    According to Microsoft, this is by-design.

    See here for full details:

    • The SystemParameters.WindowResizeBorderThickness seems to return incorrect value - Microsoft Connect (no archived version available)
    • Regression: ::GetSystemMetrics delivers different values - Microsoft Connect (archived)

    Despite MS saying it's "by design", I still think it's a bug!

提交回复
热议问题