private static extern void DwmExtendFrameIntoClientArea(IntPtr hWnd, ref Margins margin);
private static extern void DwmExtendFrameIntoClientArea( IntPtr hWnd, ref Margins margin );
/// <summary> /// Updates the glass. /// </summary> /// <param name="drawingPointer">The drawing handle.</param> /// <param name="margs">The margins.</param> public void UpdateGlass(IntPtr drawingPointer, Margins margs) { if (DesignMode) return; if (!margs.IsEmpty && Natives.CanUseAero) { Natives.ExtendGlass(drawingPointer, margs); } }
/// <summary> /// Updates the glass. /// </summary> /// <param name="margs">The margins.</param> public void UpdateGlass(Margins margs) { UpdateGlass(Handle, margs); }
/// <summary> /// Prepares the glass for rendering. /// </summary> /// <param name="margs">The margins.</param> public void PrepareGlass(Margins margs) { PrepareGlass(CreateGraphics(), margs); }
/// <summary> /// Prepares the glass for rendering. /// </summary> /// <param name="graphics">The graphics canvas.</param> /// <param name="margs">The margins.</param> public void PrepareGlass(Graphics graphics, Margins margs) { if (DesignMode) return; if (!margs.IsEmpty && Natives.CanUseAero) { Natives.FillBlackRegion(graphics, margs); } }