protected override void WndProc(ref Message m)
{
if (m.Msg == WM_LBUTTONDBLCLK)
{
Point p = new Point((int)m.LParam);
HitTestInfo tvhti = HitTest(p.X, p.Y);
m.Result = IntPtr.Zero;
return;
//if (tvhti != null && tvhti.Location == TreeViewHitTestLocations.StateImage)
//{
// m.Result = IntPtr.Zero;
// return;
//}
}
else if (m.Msg == WM_RBUTTONDOWN)
{
Point p = new Point((int)m.LParam);
HitTestInfo tvhti = HitTest(p.X, p.Y);
//if (tvhti != null)
// SelectedNode = tvhti.Node;
}
base.WndProc(ref m);
}