internal DwmWindowHelper(IntPtr windowHandle, DwmApi.Margins margins, bool blurClientArea, bool nonClientAreaDrawingEnabled, Action notifyDwmCompositionChanged, Func <ushort, ushort, NonClientArea> nonClientHitTest) { this.WindowHandle = windowHandle; this.DwmIsCompositionEnabled = DwmApi.IsCompositionEnabled(); this.margins = margins; this.blurClientArea = blurClientArea; this.notifyDwmCompositionChanged = notifyDwmCompositionChanged; this.UpdateGlassEffect(); this.UpdateNonClientArea(); this.nonClientAreaDrawingEnabled = nonClientAreaDrawingEnabled; this.nonClientHitTest = nonClientHitTest; this.UpdateNonClientArea(); }
protected void NotifyCompositionChanged() { this.DwmIsCompositionEnabled = DwmApi.IsCompositionEnabled(); this.UpdateGlassEffect(); this.notifyDwmCompositionChanged(); }