support for .NET framework 3.5

Still have bugs
This commit is contained in:
NaBian committed 2019-01-21 00:43:10 +08:00
1 parent 5878039e21
commit 7d6b491f25
704 files changed
+48273 -33

No files matched your search

@@ -0,0 +1,44 @@
namespace Standard
{
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential)]
internal struct NONCLIENTMETRICS
{
public int cbSize;
public int iBorderWidth;
public int iScrollWidth;
public int iScrollHeight;
public int iCaptionWidth;
public int iCaptionHeight;
public Standard.LOGFONT lfCaptionFont;
public int iSmCaptionWidth;
public int iSmCaptionHeight;
public Standard.LOGFONT lfSmCaptionFont;
public int iMenuWidth;
public int iMenuHeight;
public Standard.LOGFONT lfMenuFont;
public Standard.LOGFONT lfStatusFont;
public Standard.LOGFONT lfMessageFont;
public int iPaddedBorderWidth;
[SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands")]
public static Standard.NONCLIENTMETRICS VistaMetricsStruct
{
get
{
return new Standard.NONCLIENTMETRICS { cbSize = Marshal.SizeOf(typeof(Standard.NONCLIENTMETRICS)) };
}
}
[SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands")]
public static Standard.NONCLIENTMETRICS XPMetricsStruct
{
get
{
return new Standard.NONCLIENTMETRICS { cbSize = Marshal.SizeOf(typeof(Standard.NONCLIENTMETRICS)) - 4 };
}
}
}
}