Example #1
0
 protected override void OnLoad(EventArgs e)
 {
     if (DwmIsCompositionEnabled())
     {
         MARGINS margins = new MARGINS();
         margins.Right = 0;
         margins.Left = 0;
         margins.Top = 20;
         margins.Bottom = 0;
         DwmExtendFrameIntoClientArea(this.Handle, ref margins);
     }
     base.OnLoad(e);
 }
Example #2
0
 static extern void DwmExtendFrameIntoClientArea(IntPtr hwnd, ref MARGINS margins);
Example #3
0
 static extern void DwmExtendFrameIntoClientArea(IntPtr hwnd, ref MARGINS
                                                 margins);