コード例 #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
ファイル: Win32API.cs プロジェクト: ibeae/ThinkAway.net
 public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref Margins pMarInset);
コード例 #9
0
ファイル: Win32API.cs プロジェクト: ibeae/ThinkAway.net
 public static extern void DwmExtendFrameIntoClientArea(IntPtr hWnd, Margins pMargins);
コード例 #10
0
ファイル: Win32API.cs プロジェクト: marinehero/ThinkAway.net
 public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref Margins pMarInset);
コード例 #11
0
ファイル: Win32API.cs プロジェクト: marinehero/ThinkAway.net
 public static extern void DwmExtendFrameIntoClientArea(IntPtr hWnd, Margins pMargins);