6 instantiations of HICON
Microsoft.Private.Windows.Core (6)
Windows.Win32.HCURSOR.g.cs (1)
61 public static implicit operator HICON(HCURSOR value) => new HICON(value.Value);
Windows.Win32.HICON.g.cs (3)
41 public static explicit operator HICON(void* value) => new HICON(value); 57 public static explicit operator HICON(IntPtr value) => new HICON((void*)value.ToPointer()); 59 public static explicit operator HICON(UIntPtr value) => new HICON((void*)value.ToPointer());
Windows\Win32\System\Ole\OLE_HANDLE.cs (1)
10public static explicit operator HICON(OLE_HANDLE handle) => new((nint)(int)handle.Value);
Windows\Win32\UI\WindowsAndMessaging\HICON.cs (1)
11public static explicit operator HICON(HANDLE handle) => new((nint)handle);
41 references to HICON
Microsoft.Private.Windows.Core (41)
Windows.Win32.HCURSOR.g.cs (1)
61 public static implicit operator HICON(HCURSOR value) => new HICON(value.Value);
Windows.Win32.HICON.g.cs (13)
25 : IEquatable<HICON> 35 internal static HICON Null => default; 39 public static implicit operator void*(HICON value) => value.Value; 41 public static explicit operator HICON(void* value) => new HICON(value); 43 public static bool operator ==(HICON left, HICON right) => left.Value == right.Value; 45 public static bool operator !=(HICON left, HICON right) => !(left == right); 47 public bool Equals(HICON other) => this.Value == other.Value; 49 public override bool Equals(object obj) => obj is HICON other && this.Equals(other); 55 public static implicit operator IntPtr(HICON value) => new IntPtr(value.Value); 57 public static explicit operator HICON(IntPtr value) => new HICON((void*)value.ToPointer()); 59 public static explicit operator HICON(UIntPtr value) => new HICON((void*)value.ToPointer());
Windows.Win32.PICTDESC.g.cs (1)
79 internal winmdroot.UI.WindowsAndMessaging.HICON hicon;
Windows.Win32.PInvokeCore.USER32.dll.g.cs (8)
155 internal static extern winmdroot.Foundation.BOOL DestroyIcon(winmdroot.UI.WindowsAndMessaging.HICON hIcon); 201 internal static extern winmdroot.Foundation.BOOL DrawIconEx(winmdroot.Graphics.Gdi.HDC hdc, int xLeft, int yTop, winmdroot.UI.WindowsAndMessaging.HICON hIcon, int cxWidth, int cyWidth, uint istepIfAniCur, winmdroot.Graphics.Gdi.HBRUSH hbrFlickerFreeDraw, winmdroot.UI.WindowsAndMessaging.DI_FLAGS diFlags); 444 /// <inheritdoc cref="GetIconInfo(winmdroot.UI.WindowsAndMessaging.HICON, winmdroot.UI.WindowsAndMessaging.ICONINFO*)"/> 446 internal static unsafe winmdroot.Foundation.BOOL GetIconInfo(winmdroot.UI.WindowsAndMessaging.HICON hIcon, out winmdroot.UI.WindowsAndMessaging.ICONINFO piconinfo) 470 internal static extern unsafe winmdroot.Foundation.BOOL GetIconInfo(winmdroot.UI.WindowsAndMessaging.HICON hIcon, winmdroot.UI.WindowsAndMessaging.ICONINFO* piconinfo); 649 internal static unsafe winmdroot.UI.WindowsAndMessaging.HICON LoadIcon(winmdroot.Foundation.HINSTANCE hInstance, string lpIconName) 653 winmdroot.UI.WindowsAndMessaging.HICON __result = PInvokeCore.LoadIcon(hInstance, lpIconNameLocal); 677 internal static extern winmdroot.UI.WindowsAndMessaging.HICON LoadIcon(winmdroot.Foundation.HINSTANCE hInstance, winmdroot.Foundation.PCWSTR lpIconName);
Windows\Win32\Foundation\LRESULT.cs (2)
14public static explicit operator HICON(LRESULT value) => (HICON)value.Value;
Windows\Win32\PInvokeCore.CopyImage.cs (4)
9public static HICON CopyIcon<T>(T hImage, int cx, int cy, IMAGE_FLAGS flags = default) 10where T : IHandle<HICON> 12HICON result = (HICON)CopyImage(hImage.Handle, GDI_IMAGE_TYPE.IMAGE_ICON, cx, cy, flags);
Windows\Win32\PInvokeCore.DrawIcon.cs (1)
9where T : IHandle<HICON>
Windows\Win32\PInvokeCore.DrawIconEx.cs (2)
8/// <inheritdoc cref="DrawIconEx(HDC, int, int, HICON, int, int, uint, HBRUSH, DI_FLAGS)"/> 17where T : IHandle<HICON>
Windows\Win32\PInvokeCore.GetIconInfo.cs (2)
8/// <inheritdoc cref="GetIconInfo(HICON, ICONINFO*)"/> 10where T : IHandle<HICON>
Windows\Win32\System\Ole\OLE_HANDLE.cs (1)
10public static explicit operator HICON(OLE_HANDLE handle) => new((nint)(int)handle.Value);
Windows\Win32\UI\WindowsAndMessaging\HICON.cs (6)
6internal unsafe partial struct HICON : IHandle<HICON> 8HICON IHandle<HICON>.Handle => this; 9object? IHandle<HICON>.Wrapper => null; 11public static explicit operator HICON(HANDLE handle) => new((nint)handle); 12public static implicit operator HANDLE(HICON handle) => new((nint)handle);