添加项目文件。
This commit is contained in:
42
HYJigPro/JigTransparentForm.cs
Normal file
42
HYJigPro/JigTransparentForm.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace HYJig
|
||||
{
|
||||
public partial class JigTransparentForm : Form
|
||||
{
|
||||
public JigTransparentForm()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
base.TransparencyKey = this.BackColor;
|
||||
uint num = Class1.GetWindowLong(base.Handle, -20);
|
||||
num |= 32U;
|
||||
num |= 524288U;
|
||||
Class1.SetWindowLong(base.Handle, -20, (IntPtr)((long)((ulong)num)));
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// JigTransparentForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(15, 16);
|
||||
this.ControlBox = false;
|
||||
this.Cursor = System.Windows.Forms.Cursors.No;
|
||||
this.DoubleBuffered = true;
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "JigTransparentForm";
|
||||
this.ShowIcon = false;
|
||||
this.ShowInTaskbar = false;
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user