public DynamicForm() { Text = ""; AllowDrop = false; FormBorderStyle = FormBorderStyle.None; TopMost = true; ShowInTaskbar = false; MinimizeBox = false; MaximizeBox = false; DoubleBuffered = true; MouseDown += _MouseDown; MouseUp += _MouseUp; blend = default(BlendOpt); blend.BlendOp = 0; blend.BlendFlags = 0; blend.AlphaFormat = 1; blend.SourceConstantAlpha = 255; }
private static extern int UpdateLayeredWindow(IntPtr hwnd, IntPtr screenDc, ref Vector2 topPos, ref Vector2 size, IntPtr memDc, ref Vector2 pointSource, int crKey, ref BlendOpt pblend, int dwFlags);