From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点

---
 WPFProject/Controls/MaskControl.cs |   72 ++++++++++++++++++++++++++++++++++++
 1 files changed, 72 insertions(+), 0 deletions(-)

diff --git a/WPFProject/Controls/MaskControl.cs b/WPFProject/Controls/MaskControl.cs
new file mode 100644
index 0000000..cdc1b42
--- /dev/null
+++ b/WPFProject/Controls/MaskControl.cs
@@ -0,0 +1,72 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace WPFProject.Controls
+{
+    public partial class MaskControl : Panel
+    {
+        public MaskControl()
+        {
+            SetStyle(ControlStyles.Opaque, true);//璁剧疆鑳屾櫙閫忔槑
+            SetStyle(ControlStyles.SupportsTransparentBackColor, true);//璁剧疆鑳屾櫙閫忔槑
+            base.CreateControl();
+            this.BackColor = Color.White;
+            this.Visible = false;
+        }
+
+        //protected override CreateParams CreateParams
+        //{
+        //    get
+        //    {
+        //        CreateParams cp = base.CreateParams;
+        //        cp.ExStyle |= 0x00000020; // 寮�鍚� WS_EX_TRANSPARENT,浣挎帶浠舵敮鎸侀�忔槑
+        //        return cp;
+        //    }
+        //}
+
+        protected override void OnPaint(PaintEventArgs pe)
+        {
+            Pen labelBorderPen;
+            SolidBrush labelBackColorBrush;
+            Color cl = Color.FromArgb(128, this.BackColor);
+            labelBorderPen = new Pen(cl, 0);
+            labelBackColorBrush = new SolidBrush(cl);
+            base.OnPaint(pe);
+            pe.Graphics.DrawRectangle(labelBorderPen, 0, 0, this.Width, this.Height);
+            pe.Graphics.FillRectangle(labelBackColorBrush, 0, 0, this.Width, this.Height);
+        }
+
+        /// <summary>
+        /// 鏄剧ず鍔犺浇
+        /// </summary>
+        public void ShowLoad(Point location, Size size)
+        {
+            this.Location = location;
+            this.Size = size;
+            this.BringToFront();
+            this.Dock = DockStyle.Fill;
+            this.Visible = true;
+        }
+
+
+
+        /// <summary>
+
+        /// 闅愯棌鍔犺浇
+
+        /// </summary>
+
+        public void HideLoad()
+        {
+            this.Visible = false;
+        }
+
+    }
+}

--
Gitblit v1.9.1