Ejemplo n.º 1
0
 public void Update(Rectangle destination, byte opacity, bool visible, bool onlyClientArea)
 {
     DwmThumbnailProperties ptnProperties = new DwmThumbnailProperties();
     ptnProperties.dwFlags = DwmThumbnailFlags.SourceClientAreaOnly | DwmThumbnailFlags.Visible | DwmThumbnailFlags.Opacity | DwmThumbnailFlags.RectDestination;
     ptnProperties.rcDestination = new RECT(destination);
     ptnProperties.opacity = opacity;
     ptnProperties.fVisible = visible;
     ptnProperties.fSourceClientAreaOnly = onlyClientArea;
     if (Win32API.DwmUpdateThumbnailProperties(this, ref ptnProperties) != 0)
     {
         throw new DwmCompositionException("DWMThumbnailUpdateFailure");
     }
 }
Ejemplo n.º 2
0
 public static extern int DwmUpdateThumbnailProperties(Thumbnail hThumbnailId, ref DwmThumbnailProperties ptnProperties);
Ejemplo n.º 3
0
 public static extern int DwmUpdateThumbnailProperties(Thumbnail hThumbnailId, ref DwmThumbnailProperties ptnProperties);