コード例 #1
0
 void ITopLevelImpl.SetCursor(ICursorImpl cursor)
 {
     if (cursor == null)
     {
         Cursor = Cursors.Arrow;
     }
     else if (cursor is IPlatformHandle handle)
     {
         Cursor = CursorShim.FromHCursor(handle.Handle);
     }
 }
コード例 #2
0
 void ITopLevelImpl.SetCursor(IPlatformHandle cursor)
 {
     if (cursor == null)
     {
         Cursor = Cursors.Arrow;
     }
     else if (cursor.HandleDescriptor == "HCURSOR")
     {
         Cursor = CursorShim.FromHCursor(cursor.Handle);
     }
 }