public HandleFormMovement(Form form, Margins margins) { this._margins = margins; form.MouseDown += this.form_MouseDown; form.MouseUp += this.form_MouseUp; form.MouseMove += this.form_MouseMove; }
private static void InternalGlassFrame(IntPtr hWnd, Margins margins) { if (Win32API.DwmExtendFrameIntoClientArea(hWnd, ref margins) != 0) { throw new DwmCompositionException(string.Format("NativeCallFailure:{0}", "DwmExtendFrameIntoClientArea")); } }
public static void EnableGlassFrame(Form window, Margins margins) { InternalGlassFrame(window.Handle, margins); }
public static void EnableGlassFrame(IntPtr hWnd, Margins margins) { InternalGlassFrame(hWnd, margins); }
public static void HandleBackgroundPainting(Form form, Margins margins) { new HandleBackground(form, margins); }
public HandleBackground(Form form, Margins m) { this._margins = m; form.Paint += this.form_Paint; }
public static void HandleFormMovementOnGlass(Form form, Margins margins) { new HandleFormMovement(form, margins); }
public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref Margins pMarInset);
public static extern void DwmExtendFrameIntoClientArea(IntPtr hWnd, Margins pMargins);