protected override void WndProc(ref Message message) { if (message.Msg == NativeMethods.WM_LBUTTONDOWN) { int param = (int)message.LParam; if ((_paletteItem != null) && (this.GetNodeAt(param & 0xFFFF, param >> 16) != null)) { if (_dropFilter.DropHighlightNode != null) { ((DesignerNode)_dropFilter.DropHighlightNode).AddNew(_paletteItem, _dropFilter.DropLinePosition); } FormDesigner.PaletteItemDropped(); message.Result = IntPtr.Zero; return; } } base.WndProc(ref message); }