Пример #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;
 }
Пример #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"));
     }
 }
Пример #3
0
 public static void EnableGlassFrame(Form window, Margins margins)
 {
     InternalGlassFrame(window.Handle, margins);
 }
Пример #4
0
 public static void EnableGlassFrame(IntPtr hWnd, Margins margins)
 {
     InternalGlassFrame(hWnd, margins);
 }
Пример #5
0
 public static void HandleBackgroundPainting(Form form, Margins margins)
 {
     new HandleBackground(form, margins);
 }
Пример #6
0
 public HandleBackground(Form form, Margins m)
 {
     this._margins = m;
     form.Paint += this.form_Paint;
 }
Пример #7
0
 public static void HandleFormMovementOnGlass(Form form, Margins margins)
 {
     new HandleFormMovement(form, margins);
 }
Пример #8
0
 public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref Margins pMarInset);
Пример #9
0
 public static extern void DwmExtendFrameIntoClientArea(IntPtr hWnd, Margins pMargins);
Пример #10
0
 public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref Margins pMarInset);
Пример #11
0
 public static extern void DwmExtendFrameIntoClientArea(IntPtr hWnd, Margins pMargins);