CarotDav_decompile/CarotDAV/NoEatMenuStrip.cs

29 lines
795 B
C#

// Decompiled with JetBrains decompiler
// Type: CarotDAV.NoEatMenuStrip
// Assembly: CarotDAV, Version=1.13.2.18337, Culture=neutral, PublicKeyToken=null
// MVID: C31F2651-A4A8-4D09-916A-8C6106F5E7C8
// Assembly location: F:\Eigene Dateien\Dropbox\portable Collection\Progs\CarotDAV\CarotDAV.exe
using System;
using System.Windows.Forms;
namespace CarotDAV
{
public class NoEatMenuStrip : MenuStrip
{
private const int WM_MOUSEACTIVATE = 33;
private const int MA_ACTIVATE = 1;
private const int MA_ACTIVATEANDEAT = 2;
private const int MA_NOACTIVATE = 3;
private const int MA_NOACTIVATEANDEAT = 4;
protected override void WndProc(ref Message m)
{
if (m.Msg == 33)
m.Result = new IntPtr(1);
else
base.WndProc(ref m);
}
}
}