private static RECT GetThemeRect(UxTheme.SafeThemeHandle hTheme, int iPartId, int iStateId, int iPropId) { UxTheme.GetThemeRect(hTheme, iPartId, iStateId, iPropId, out var rect); return(rect); }