public bool Hide(StandardCursor cursor) { if (hiddenCursors.ContainsKey(cursor)) { return(false); } hiddenCursors.Add(cursor, new SystemCursor(SystemCursor.GetCurrentCursor(cursor))); new SystemCursor(empty, new Point(0, 0)).Set(cursor); return(true); }
public SystemCursor(SystemCursor copy) : this(NativeMethods.CopyIcon(copy.handle)) { }