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