public VistaWindow(IntPtr handle, string title) { this.fHandle = handle; this.fOpacity = 1; this.fScaledSize = new PSize(); this.fRectangle = new Rect(0, 0, 0, 0); this.fApplicationInstance = User32.GetWindowLong(this.Handle, VistaDwm.GWL_HINSTANCE); this.fThumbnailProperties = new ThumbnailProperties(); this.fThumbnailProperties.fVisible = true; this.fThumbnailProperties.dwFlags = VistaDwm.DWM_TNP_VISIBLE | VistaDwm.DWM_TNP_RECTDESTINATION | VistaDwm.DWM_TNP_OPACITY; this.RefreshVisibleProperties(title); }
public static extern int DwmUpdateThumbnailProperties(IntPtr hThumb, ref ThumbnailProperties props);