diff -r 07a9329cd87c -r 99f16e21cdc8 GUI/GadgetWindow.cs --- a/GUI/GadgetWindow.cs Tue Nov 16 21:48:26 2010 +0000 +++ b/GUI/GadgetWindow.cs Sun Nov 21 12:28:31 2010 +0000 @@ -132,6 +132,11 @@ } } break; case WM_NCLBUTTONDBLCLK: { + if (MouseDoubleClick != null) { + MouseDoubleClick(this, new MouseEventArgs(MouseButtons.Left, 2, + Macros.GET_X_LPARAM(message.LParam) - location.X, + Macros.GET_Y_LPARAM(message.LParam) - location.Y, 0)); + } message.Result = IntPtr.Zero; } break; case WM_NCRBUTTONDOWN: { @@ -360,6 +365,8 @@ public event HitTestEventHandler HitTest; + public event MouseEventHandler MouseDoubleClick; + [StructLayout(LayoutKind.Sequential, Pack = 1)] private struct BlendFunction { public byte BlendOp;