4 instantiations of HBITMAP
Microsoft.Private.Windows.Core (4)
Windows.Win32.HBITMAP.g.cs (3)
41
public static explicit operator HBITMAP(void* value) => new
HBITMAP
(value);
57
public static explicit operator HBITMAP(IntPtr value) => new
HBITMAP
((void*)value.ToPointer());
59
public static explicit operator HBITMAP(UIntPtr value) => new
HBITMAP
((void*)value.ToPointer());
Windows\Win32\System\Ole\OLE_HANDLE.cs (1)
11
public static explicit operator HBITMAP(OLE_HANDLE handle) =>
new
((nint)(int)handle.Value);
58 references to HBITMAP
Microsoft.Private.Windows.Core (58)
System\Private\Windows\Graphics\IBitmap.cs (1)
16
HBITMAP
GetHbitmap();
System\Private\Windows\Ole\DragDropHelper.cs (2)
277
using
HBITMAP
hbmpDragImage = dragImage is not null ? dragImage.GetHbitmap() :
HBITMAP
.Null;
Windows.Win32.HBITMAP.g.cs (36)
25
: IEquatable<
HBITMAP
>
35
internal static
HBITMAP
Null => default;
39
public static implicit operator void*(
HBITMAP
value) => value.Value;
41
public static explicit operator
HBITMAP
(void* value) => new HBITMAP(value);
43
public static bool operator ==(
HBITMAP
left,
HBITMAP
right) => left.Value == right.Value;
45
public static bool operator !=(
HBITMAP
left,
HBITMAP
right) => !(left == right);
47
public bool Equals(
HBITMAP
other) => this.Value == other.Value;
49
public override bool Equals(object obj) => obj is
HBITMAP
other && this.Equals(other);
55
public static implicit operator IntPtr(
HBITMAP
value) => new IntPtr(value.Value);
57
public static explicit operator
HBITMAP
(IntPtr value) => new HBITMAP((void*)value.ToPointer());
59
public static explicit operator
HBITMAP
(UIntPtr value) => new HBITMAP((void*)value.ToPointer());
61
public static implicit operator HGDIOBJ(
HBITMAP
value) => new HGDIOBJ(value.Value);
63
internal static readonly winmdroot.Graphics.Gdi.
HBITMAP
HBMMENU_CALLBACK = (winmdroot.Graphics.Gdi.
HBITMAP
)(IntPtr)(-1);
65
internal static readonly winmdroot.Graphics.Gdi.
HBITMAP
HBMMENU_SYSTEM = (winmdroot.Graphics.Gdi.
HBITMAP
)(IntPtr)(1);
67
internal static readonly winmdroot.Graphics.Gdi.
HBITMAP
HBMMENU_MBAR_RESTORE = (winmdroot.Graphics.Gdi.
HBITMAP
)(IntPtr)(2);
69
internal static readonly winmdroot.Graphics.Gdi.
HBITMAP
HBMMENU_MBAR_MINIMIZE = (winmdroot.Graphics.Gdi.
HBITMAP
)(IntPtr)(3);
71
internal static readonly winmdroot.Graphics.Gdi.
HBITMAP
HBMMENU_MBAR_CLOSE = (winmdroot.Graphics.Gdi.
HBITMAP
)(IntPtr)(5);
73
internal static readonly winmdroot.Graphics.Gdi.
HBITMAP
HBMMENU_MBAR_CLOSE_D = (winmdroot.Graphics.Gdi.
HBITMAP
)(IntPtr)(6);
75
internal static readonly winmdroot.Graphics.Gdi.
HBITMAP
HBMMENU_MBAR_MINIMIZE_D = (winmdroot.Graphics.Gdi.
HBITMAP
)(IntPtr)(7);
77
internal static readonly winmdroot.Graphics.Gdi.
HBITMAP
HBMMENU_POPUP_CLOSE = (winmdroot.Graphics.Gdi.
HBITMAP
)(IntPtr)(8);
79
internal static readonly winmdroot.Graphics.Gdi.
HBITMAP
HBMMENU_POPUP_RESTORE = (winmdroot.Graphics.Gdi.
HBITMAP
)(IntPtr)(9);
81
internal static readonly winmdroot.Graphics.Gdi.
HBITMAP
HBMMENU_POPUP_MAXIMIZE = (winmdroot.Graphics.Gdi.
HBITMAP
)(IntPtr)(10);
83
internal static readonly winmdroot.Graphics.Gdi.
HBITMAP
HBMMENU_POPUP_MINIMIZE = (winmdroot.Graphics.Gdi.
HBITMAP
)(IntPtr)(11);
Windows.Win32.ICONINFO.g.cs (2)
52
internal winmdroot.Graphics.Gdi.
HBITMAP
hbmMask;
58
internal winmdroot.Graphics.Gdi.
HBITMAP
hbmColor;
Windows.Win32.PICTDESC.g.cs (1)
61
internal winmdroot.Graphics.Gdi.
HBITMAP
hbitmap;
Windows.Win32.PInvokeCore.GDI32.dll.g.cs (5)
122
internal static extern unsafe winmdroot.Graphics.Gdi.
HBITMAP
CreateBitmap(int nWidth, int nHeight, uint nPlanes, uint nBitCount, [Optional] void* lpBits);
139
internal static extern winmdroot.Graphics.Gdi.
HBITMAP
CreateCompatibleBitmap(winmdroot.Graphics.Gdi.HDC hdc, int cx, int cy);
196
internal static unsafe winmdroot.Graphics.Gdi.
HBITMAP
CreateDIBSection(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.BITMAPINFO* pbmi, winmdroot.Graphics.Gdi.DIB_USAGE usage, out void* ppvBits, winmdroot.Foundation.HANDLE hSection, uint offset)
200
winmdroot.Graphics.Gdi.
HBITMAP
__result = PInvokeCore.CreateDIBSection(hdc, pbmi, usage, ppvBitsLocal, hSection, offset);
229
internal static extern unsafe winmdroot.Graphics.Gdi.
HBITMAP
CreateDIBSection(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.BITMAPINFO* pbmi, winmdroot.Graphics.Gdi.DIB_USAGE usage, void** ppvBits, winmdroot.Foundation.HANDLE hSection, uint offset);
Windows.Win32.SHDRAGIMAGE.g.cs (1)
47
internal winmdroot.Graphics.Gdi.
HBITMAP
hbmpDragImage;
Windows.Win32.STGMEDIUM.g.cs (1)
42
internal winmdroot.Graphics.Gdi.
HBITMAP
hBitmap;
Windows\Win32\Graphics\Gdi\CreateBitmapScope.cs (4)
7
/// Helper to scope lifetime of a <see cref="Gdi.
HBITMAP
"/> created via <see cref="PInvokeCore.CreateBitmap"/>
8
/// Deletes the <see cref="Gdi.
HBITMAP
"/> (if any) when disposed.
22
public
HBITMAP
HBITMAP { get; }
36
public static implicit operator
HBITMAP
(in CreateBitmapScope scope) => scope.HBITMAP;
Windows\Win32\Graphics\Gdi\HBITMAP.cs (2)
19
public
HBITMAP
CreateCompatibleBitmap(int width, int height)
29
HBITMAP
compatibleBitmap = PInvokeCore.CreateCompatibleBitmap(screenDC, width, height);
Windows\Win32\Graphics\Gdi\HGDIOBJ.cs (2)
12
public static explicit operator
HBITMAP
(HGDIOBJ value) => (
HBITMAP
)value.Value;
Windows\Win32\System\Ole\OLE_HANDLE.cs (1)
11
public static explicit operator
HBITMAP
(OLE_HANDLE handle) => new((nint)(int)handle.Value);