Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 protected void NotifyCompositionChanged()
 {
     this.DwmIsCompositionEnabled = DwmApi.IsCompositionEnabled();
     this.UpdateGlassEffect();
     this.notifyDwmCompositionChanged();
 }