1 instantiation of HTHEME
System.Windows.Forms.Primitives (1)
Windows.Win32.HTHEME.g.cs (1)
37
public static explicit operator HTHEME(IntPtr value) => new
HTHEME
(value);
101 references to HTHEME
System.Windows.Forms (15)
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (15)
13
public sealed class VisualStyleRenderer : IHandle<
HTHEME
>
94
HTHEME
hTheme = GetHandle(className, false);
179
HTHEME
IHandle<
HTHEME
>.Handle => (
HTHEME
)Handle;
181
internal
HTHEME
HTHEME => (
HTHEME
)Handle;
832
private static
HTHEME
GetHandle(string className)
841
private static
HTHEME
GetHandle(string className, bool throwExceptionOnFail)
856
return
HTHEME
.Null;
872
private class ThemeHandle : IDisposable, IHandle<
HTHEME
>
874
private ThemeHandle(
HTHEME
hTheme)
879
public
HTHEME
Handle { get; private set; }
889
HTHEME
hTheme = PInvoke.OpenThemeData(hWndRef, className);
901
Handle =
HTHEME
.Null;
System.Windows.Forms.Primitives (86)
Windows.Win32.HTHEME.g.cs (10)
25
: IEquatable<
HTHEME
>
31
internal static
HTHEME
Null => default;
35
public static implicit operator IntPtr(
HTHEME
value) => value.Value;
37
public static explicit operator
HTHEME
(IntPtr value) => new HTHEME(value);
39
public static bool operator ==(
HTHEME
left,
HTHEME
right) => left.Value == right.Value;
41
public static bool operator !=(
HTHEME
left,
HTHEME
right) => !(left == right);
43
public bool Equals(
HTHEME
other) => this.Value == other.Value;
45
public override bool Equals(object obj) => obj is
HTHEME
other && this.Equals(other);
Windows.Win32.PInvoke.UXTHEME.dll.g.cs (72)
37
internal static extern winmdroot.Foundation.HRESULT CloseThemeData(winmdroot.UI.Controls.
HTHEME
hTheme);
39
/// <inheritdoc cref="DrawThemeBackground(winmdroot.UI.Controls.
HTHEME
, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.RECT*, winmdroot.Foundation.RECT*)"/>
41
internal static unsafe winmdroot.Foundation.HRESULT DrawThemeBackground(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, in winmdroot.Foundation.RECT pRect, winmdroot.Foundation.RECT? pClipRect)
82
internal static extern unsafe winmdroot.Foundation.HRESULT DrawThemeBackground(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.RECT* pRect, [Optional] winmdroot.Foundation.RECT* pClipRect);
84
/// <inheritdoc cref="DrawThemeEdge(winmdroot.UI.Controls.
HTHEME
, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.DRAWEDGE_FLAGS, winmdroot.Graphics.Gdi.DRAW_EDGE_FLAGS, winmdroot.Foundation.RECT*)"/>
86
internal static unsafe winmdroot.Foundation.HRESULT DrawThemeEdge(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, in winmdroot.Foundation.RECT pDestRect, winmdroot.Graphics.Gdi.DRAWEDGE_FLAGS uEdge, winmdroot.Graphics.Gdi.DRAW_EDGE_FLAGS uFlags, winmdroot.Foundation.RECT* pContentRect)
134
internal static extern unsafe winmdroot.Foundation.HRESULT DrawThemeEdge(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.RECT* pDestRect, winmdroot.Graphics.Gdi.DRAWEDGE_FLAGS uEdge, winmdroot.Graphics.Gdi.DRAW_EDGE_FLAGS uFlags, [Optional] winmdroot.Foundation.RECT* pContentRect);
168
/// <inheritdoc cref="DrawThemeText(winmdroot.UI.Controls.
HTHEME
, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.PCWSTR, int, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT, uint, winmdroot.Foundation.RECT*)"/>
170
internal static unsafe winmdroot.Foundation.HRESULT DrawThemeText(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, string pszText, int cchText, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT dwTextFlags, uint dwTextFlags2, in winmdroot.Foundation.RECT pRect)
225
internal static extern unsafe winmdroot.Foundation.HRESULT DrawThemeText(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.PCWSTR pszText, int cchText, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT dwTextFlags, uint dwTextFlags2, winmdroot.Foundation.RECT* pRect);
275
/// <inheritdoc cref="GetThemeBackgroundContentRect(winmdroot.UI.Controls.
HTHEME
, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.RECT*, winmdroot.Foundation.RECT*)"/>
277
internal static unsafe winmdroot.Foundation.HRESULT GetThemeBackgroundContentRect(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, in winmdroot.Foundation.RECT pBoundingRect, out winmdroot.Foundation.RECT pContentRect)
320
internal static extern unsafe winmdroot.Foundation.HRESULT GetThemeBackgroundContentRect(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.RECT* pBoundingRect, winmdroot.Foundation.RECT* pContentRect);
322
/// <inheritdoc cref="GetThemeBackgroundExtent(winmdroot.UI.Controls.
HTHEME
, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.RECT*, winmdroot.Foundation.RECT*)"/>
324
internal static unsafe winmdroot.Foundation.HRESULT GetThemeBackgroundExtent(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, in winmdroot.Foundation.RECT pContentRect, out winmdroot.Foundation.RECT pExtentRect)
367
internal static extern unsafe winmdroot.Foundation.HRESULT GetThemeBackgroundExtent(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.RECT* pContentRect, winmdroot.Foundation.RECT* pExtentRect);
369
/// <inheritdoc cref="GetThemeBackgroundRegion(winmdroot.UI.Controls.
HTHEME
, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.HRGN*)"/>
371
internal static unsafe winmdroot.Foundation.HRESULT GetThemeBackgroundRegion(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, in winmdroot.Foundation.RECT pRect, winmdroot.Graphics.Gdi.HRGN* pRegion)
411
internal static extern unsafe winmdroot.Foundation.HRESULT GetThemeBackgroundRegion(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.RECT* pRect, winmdroot.Graphics.Gdi.HRGN* pRegion);
413
/// <inheritdoc cref="GetThemeBool(winmdroot.UI.Controls.
HTHEME
, int, int, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID, winmdroot.Foundation.BOOL*)"/>
415
internal static unsafe winmdroot.Foundation.HRESULT GetThemeBool(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, out winmdroot.Foundation.BOOL pfVal)
449
internal static unsafe winmdroot.Foundation.HRESULT GetThemeBool(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, winmdroot.Foundation.BOOL* pfVal)
455
static extern unsafe winmdroot.Foundation.HRESULT LocalExternFunction(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, int iPropId, winmdroot.Foundation.BOOL* pfVal);
458
/// <inheritdoc cref="GetThemeColor(winmdroot.UI.Controls.
HTHEME
, int, int, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID, winmdroot.Foundation.COLORREF*)"/>
460
internal static unsafe winmdroot.Foundation.HRESULT GetThemeColor(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, out winmdroot.Foundation.COLORREF pColor)
497
internal static unsafe winmdroot.Foundation.HRESULT GetThemeColor(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, winmdroot.Foundation.COLORREF* pColor)
503
static extern unsafe winmdroot.Foundation.HRESULT LocalExternFunction(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, int iPropId, winmdroot.Foundation.COLORREF* pColor);
542
/// <inheritdoc cref="GetThemeEnumValue(winmdroot.UI.Controls.
HTHEME
, int, int, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID, int*)"/>
544
internal static unsafe winmdroot.Foundation.HRESULT GetThemeEnumValue(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, out int piVal)
581
internal static unsafe winmdroot.Foundation.HRESULT GetThemeEnumValue(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, int* piVal)
587
static extern unsafe winmdroot.Foundation.HRESULT LocalExternFunction(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, int iPropId, int* piVal);
622
internal static winmdroot.Foundation.HRESULT GetThemeFilename(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, winmdroot.Foundation.PWSTR pszThemeFileName, int cchMaxBuffChars)
628
static extern winmdroot.Foundation.HRESULT LocalExternFunction(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, int iPropId, winmdroot.Foundation.PWSTR pszThemeFileName, int cchMaxBuffChars);
631
/// <inheritdoc cref="GetThemeFont(winmdroot.UI.Controls.
HTHEME
, winmdroot.Graphics.Gdi.HDC, int, int, int, winmdroot.Graphics.Gdi.LOGFONTW*)"/>
633
internal static unsafe winmdroot.Foundation.HRESULT GetThemeFont(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, int iPropId, out winmdroot.Graphics.Gdi.LOGFONTW pFont)
676
internal static extern unsafe winmdroot.Foundation.HRESULT GetThemeFont(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, int iPropId, winmdroot.Graphics.Gdi.LOGFONTW* pFont);
678
/// <inheritdoc cref="GetThemeInt(winmdroot.UI.Controls.
HTHEME
, int, int, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID, int*)"/>
680
internal static unsafe winmdroot.Foundation.HRESULT GetThemeInt(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, out int piVal)
717
internal static unsafe winmdroot.Foundation.HRESULT GetThemeInt(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, int* piVal)
723
static extern unsafe winmdroot.Foundation.HRESULT LocalExternFunction(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, int iPropId, int* piVal);
726
/// <inheritdoc cref="GetThemeMargins(winmdroot.UI.Controls.
HTHEME
, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID, winmdroot.Foundation.RECT*, winmdroot.UI.Controls.MARGINS*)"/>
728
internal static unsafe winmdroot.Foundation.HRESULT GetThemeMargins(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, winmdroot.Foundation.RECT? prc, out winmdroot.UI.Controls.MARGINS pMargins)
774
internal static unsafe winmdroot.Foundation.HRESULT GetThemeMargins(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, [Optional] winmdroot.Foundation.RECT* prc, winmdroot.UI.Controls.MARGINS* pMargins)
780
static extern unsafe winmdroot.Foundation.HRESULT LocalExternFunction(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, int iPropId, [Optional] winmdroot.Foundation.RECT* prc, winmdroot.UI.Controls.MARGINS* pMargins);
783
/// <inheritdoc cref="GetThemePartSize(winmdroot.UI.Controls.
HTHEME
, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.RECT*, winmdroot.UI.Controls.THEMESIZE, winmdroot.Foundation.SIZE*)"/>
785
internal static unsafe winmdroot.Foundation.HRESULT GetThemePartSize(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.RECT? prc, winmdroot.UI.Controls.THEMESIZE eSize, out winmdroot.Foundation.SIZE psz)
828
internal static extern unsafe winmdroot.Foundation.HRESULT GetThemePartSize(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, [Optional] winmdroot.Foundation.RECT* prc, winmdroot.UI.Controls.THEMESIZE eSize, winmdroot.Foundation.SIZE* psz);
830
/// <inheritdoc cref="GetThemePosition(winmdroot.UI.Controls.
HTHEME
, int, int, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID, global::System.Drawing.Point*)"/>
832
internal static unsafe winmdroot.Foundation.HRESULT GetThemePosition(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, out global::System.Drawing.Point pPoint)
867
internal static unsafe winmdroot.Foundation.HRESULT GetThemePosition(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, global::System.Drawing.Point* pPoint)
873
static extern unsafe winmdroot.Foundation.HRESULT LocalExternFunction(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, int iPropId, global::System.Drawing.Point* pPoint);
909
internal static extern winmdroot.Foundation.HRESULT GetThemeString(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId, int iPropId, winmdroot.Foundation.PWSTR pszBuff, int cchMaxBuffChars);
926
internal static winmdroot.Foundation.BOOL GetThemeSysBool(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iBoolId)
932
static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.UI.Controls.
HTHEME
hTheme, int iBoolId);
935
/// <inheritdoc cref="GetThemeSysInt(winmdroot.UI.Controls.
HTHEME
, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID, int*)"/>
937
internal static unsafe winmdroot.Foundation.HRESULT GetThemeSysInt(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iIntId, out int piValue)
967
internal static unsafe winmdroot.Foundation.HRESULT GetThemeSysInt(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iIntId, int* piValue)
973
static extern unsafe winmdroot.Foundation.HRESULT LocalExternFunction(winmdroot.UI.Controls.
HTHEME
hTheme, int iIntId, int* piValue);
976
/// <inheritdoc cref="GetThemeTextExtent(winmdroot.UI.Controls.
HTHEME
, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.PCWSTR, int, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT, winmdroot.Foundation.RECT*, winmdroot.Foundation.RECT*)"/>
978
internal static unsafe winmdroot.Foundation.HRESULT GetThemeTextExtent(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, string pszText, int cchCharCount, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT dwTextFlags, winmdroot.Foundation.RECT? pBoundingRect, out winmdroot.Foundation.RECT pExtentRect)
1036
internal static extern unsafe winmdroot.Foundation.HRESULT GetThemeTextExtent(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.PCWSTR pszText, int cchCharCount, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT dwTextFlags, [Optional] winmdroot.Foundation.RECT* pBoundingRect, winmdroot.Foundation.RECT* pExtentRect);
1038
/// <inheritdoc cref="GetThemeTextMetrics(winmdroot.UI.Controls.
HTHEME
, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Graphics.Gdi.TEXTMETRICW*)"/>
1040
internal static unsafe winmdroot.Foundation.HRESULT GetThemeTextMetrics(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, out winmdroot.Graphics.Gdi.TEXTMETRICW ptm)
1078
internal static extern unsafe winmdroot.Foundation.HRESULT GetThemeTextMetrics(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Graphics.Gdi.TEXTMETRICW* ptm);
1080
/// <inheritdoc cref="HitTestThemeBackground(winmdroot.UI.Controls.
HTHEME
, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.UI.Controls.HIT_TEST_BACKGROUND_OPTIONS, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.HRGN, global::System.Drawing.Point, ushort*)"/>
1082
internal static unsafe winmdroot.Foundation.HRESULT HitTestThemeBackground(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.UI.Controls.HIT_TEST_BACKGROUND_OPTIONS dwOptions, in winmdroot.Foundation.RECT pRect, winmdroot.Graphics.Gdi.HRGN hrgn, global::System.Drawing.Point ptTest, out ushort pwHitTestCode)
1138
internal static extern unsafe winmdroot.Foundation.HRESULT HitTestThemeBackground(winmdroot.UI.Controls.
HTHEME
hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.UI.Controls.HIT_TEST_BACKGROUND_OPTIONS dwOptions, winmdroot.Foundation.RECT* pRect, winmdroot.Graphics.Gdi.HRGN hrgn, global::System.Drawing.Point ptTest, ushort* pwHitTestCode);
1176
internal static extern winmdroot.Foundation.BOOL IsThemeBackgroundPartiallyTransparent(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId);
1200
internal static extern winmdroot.Foundation.BOOL IsThemePartDefined(winmdroot.UI.Controls.
HTHEME
hTheme, int iPartId, int iStateId);
1204
internal static unsafe winmdroot.UI.Controls.
HTHEME
OpenThemeData(winmdroot.Foundation.HWND hwnd, string pszClassList)
1208
winmdroot.UI.Controls.
HTHEME
__result = PInvoke.OpenThemeData(hwnd, pszClassListLocal);
1231
internal static extern winmdroot.UI.Controls.
HTHEME
OpenThemeData(winmdroot.Foundation.HWND hwnd, winmdroot.Foundation.PCWSTR pszClassList);
Windows\Win32\PInvoke.GetThemeFont.cs (2)
10
/// <inheritdoc cref="GetThemeFont(
HTHEME
, HDC, int, int, int, LOGFONTW*)"/>
12
where T : IHandle<
HTHEME
>
Windows\Win32\PInvoke.OpenThemeDataScope.cs (2)
23
public
HTHEME
HTheme { get; }
33
public static implicit operator
HTHEME
(in OpenThemeDataScope scope) => scope.HTheme;