mirror of
https://github.com/mastercodeon314/KsDumper-11.git
synced 2024-11-14 18:38:04 +01:00
28 lines
602 B
C#
28 lines
602 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace DarkControls.Controls
|
|
{
|
|
public class TransparentLabel : Label
|
|
{
|
|
protected override void WndProc(ref Message m)
|
|
{
|
|
const int WM_NCHITTEST = 0x0084;
|
|
const int HTTRANSPARENT = (-1);
|
|
|
|
if (m.Msg == WM_NCHITTEST)
|
|
{
|
|
m.Result = (IntPtr)HTTRANSPARENT;
|
|
}
|
|
else
|
|
{
|
|
base.WndProc(ref m);
|
|
}
|
|
}
|
|
}
|
|
}
|