UltimateZoneBuilder/Source/Core/Controls/TransparentLabel.cs
MaxED 447851e457 Added, Textures Browser: redesigned textures list. Textures preview size can now be changed from the Textures Browser window. Folders are now shown in the textures list.
Fixed, Script Editor: Find and Replace window now sets keyboard focus to the input textbox when opening the window/switching between tabs.
Fixed, Nodes Viewer mode: SEGS overflows were not handled, causing a crash. Also extended SEGS limit is now used.
Updated ZDoom_DECORATE.cfg (A_SetSize).
2016-12-22 15:04:40 +00:00

28 lines
570 B
C#

using System;
using System.Windows.Forms;
namespace CodeImp.DoomBuilder.Controls
{
//mxd. Label, which ignores mouse events
internal class TransparentLabel : Label
{
private const int WM_NCHITTEST = 0x0084;
private const int WM_MOUSEHOVER = 0x02A1;
private const int HTTRANSPARENT = -1;
protected override void WndProc(ref Message m)
{
switch(m.Msg)
{
case WM_NCHITTEST:
case WM_MOUSEHOVER:
m.Result = (IntPtr)HTTRANSPARENT;
break;
default:
base.WndProc(ref m);
break;
}
}
}
}