1.1 --- a/GUI/GadgetWindow.cs Tue Nov 16 21:48:26 2010 +0000
1.2 +++ b/GUI/GadgetWindow.cs Sun Nov 21 12:28:31 2010 +0000
1.3 @@ -132,6 +132,11 @@
1.4 }
1.5 } break;
1.6 case WM_NCLBUTTONDBLCLK: {
1.7 + if (MouseDoubleClick != null) {
1.8 + MouseDoubleClick(this, new MouseEventArgs(MouseButtons.Left, 2,
1.9 + Macros.GET_X_LPARAM(message.LParam) - location.X,
1.10 + Macros.GET_Y_LPARAM(message.LParam) - location.Y, 0));
1.11 + }
1.12 message.Result = IntPtr.Zero;
1.13 } break;
1.14 case WM_NCRBUTTONDOWN: {
1.15 @@ -360,6 +365,8 @@
1.16
1.17 public event HitTestEventHandler HitTest;
1.18
1.19 + public event MouseEventHandler MouseDoubleClick;
1.20 +
1.21 [StructLayout(LayoutKind.Sequential, Pack = 1)]
1.22 private struct BlendFunction {
1.23 public byte BlendOp;