23 references to HCURSOR
System.Private.Windows.Core (10)
Windows\Win32\PInvokeCore.CopyImage.cs (4)
18public static HCURSOR CopyCursor<T>(T hImage, int cx, int cy, IMAGE_FLAGS flags = default) 19where T : IHandle<HCURSOR> 21HCURSOR result = (HCURSOR)CopyImage(hImage.Handle, GDI_IMAGE_TYPE.IMAGE_CURSOR, cx, cy, flags);
Windows\Win32\UI\WindowsAndMessaging\HCURSOR.cs (6)
6internal unsafe partial struct HCURSOR : IHandle<HCURSOR> 8HCURSOR IHandle<HCURSOR>.Handle => this; 9object? IHandle<HCURSOR>.Wrapper => null; 11public static explicit operator HCURSOR(HANDLE handle) => new((nint)handle); 12public static implicit operator HANDLE(HCURSOR handle) => new((nint)handle);
System.Windows.Forms (9)
System\Windows\Forms\Input\Cursor.cs (9)
20public sealed class Cursor : IDisposable, ISerializable, IHandle<HICON>, IHandle<HANDLE>, IHandle<HCURSOR> 25private HCURSOR _handle; 65_handle = (HCURSOR)handle; 147HCURSOR cursor = PInvoke.GetCursor(); 150set => PInvoke.SetCursor(value?._handle ?? HCURSOR.Null); 217HCURSOR IHandle<HCURSOR>.Handle => _handle; 236_handle = HCURSOR.Null; 421_handle = (HCURSOR)PInvokeCore.CopyImage(
System.Windows.Forms.Primitives.Tests (3)
Interop\Mocks\MockCursor.cs (3)
12private HCURSOR _handle; 31_handle = HCURSOR.Null; 35internal HCURSOR Handle => _handle.IsNull ? throw new ObjectDisposedException(nameof(MockCursor)) : _handle;
System.Windows.Forms.Primitives.TestUtilities (1)
Win32\WindowClass.cs (1)
42HCURSOR cursor = default,