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