using System;
using ;
using ;
using ;
using ;
using ;
using ;
using ;
using ;
namespace MyWeather
{
public partial class Form1 : Form
{
[StructLayout()]
public struct MARGINS
{
public int Left;
public int Right;
public int Top;
public int Bottom;
}
[DllImport("", PreserveSig = false)]
static extern void DwmExtendFrameIntoClientArea(IntPtr hwnd, ref MARGINS margins);
[DllImport("", PreserveSig = false)]
static extern bool DwmIsCompositionEnabled();
public Form1()
{
InitializeComponent();
}
protected override void OnLoad(EventArgs e)
{
if (DwmIsCompositionEnabled())
{
MARGINS margins = new MARGINS();
= = = = + ;
DwmExtendFrameIntoClientArea(, ref margins);
}
(e);
}
protected override void OnPaintBackground(PaintEventArgs e)
{
(e);
if (DwmIsCompositionEnabled())
{
();
}
}
}
}