Fixed generic GetThemeColor (#395)

pull/411/head
Scover 2023-05-10 19:20:11 +02:00 committed by GitHub
parent 44a0defcd2
commit 8d84d71928
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1535,7 +1535,7 @@ namespace Vanara.PInvoke
/// <para>Type: <c><c>HRESULT</c></c></para>
/// <para>If this function succeeds, it returns <c>S_OK</c>. Otherwise, it returns an <c>HRESULT</c> error code.</para>
/// </returns>
public static HRESULT GetThemeColor<TPart, TState, TProp>(HTHEME hTheme, int iPartId, int iStateId, int iPropId, out COLORREF pColor)
public static HRESULT GetThemeColor<TPart, TState, TProp>(HTHEME hTheme, TPart iPartId, TState iStateId, TProp iPropId, out COLORREF pColor)
where TPart : IConvertible where TState : IConvertible where TProp : IConvertible =>
GetThemeColor(hTheme, Convert.ToInt32(iPartId), Convert.ToInt32(iStateId), Convert.ToInt32(iPropId), out pColor);
@ -3769,4 +3769,4 @@ namespace Vanara.PInvoke
protected override bool InternalReleaseHandle() => CloseThemeData(this).Succeeded;
}
}
}
}