[DllImport("uxtheme.dll", SetLastError = true)] public static extern HRESULT GetThemeTextMetrics( IntPtr hTheme, HDC hdc, int iPartId, int iStateId, out TEXTMETRIC ptm );
Microsoft documentation: Link
Last updated 1 year ago