private bool TreeControl_MessageCaptured(ref Message msg) { switch (msg.Msg) { case WM.USER: fPreventSelChange = false; break; case WM.MBUTTONUP: // TODO if (/*!QTUtility.CheckConfig(Settings.NoMidClickTree) &&*/ treeControl != null && TreeViewMiddleClicked != null) { HandleClick(QTUtility2.PointFromLPARAM(msg.LParam)); } break; case WM.DESTROY: if (treeControl != null) { Marshal.ReleaseComObject(treeControl); treeControl = null; } break; } return(false); }
public TreeViewWrapper(IntPtr hwnd, INameSpaceTreeControl treeControl) { this.treeControl = treeControl; treeController = new NativeWindowController(hwnd); treeController.MessageCaptured += TreeControl_MessageCaptured; parentController = new NativeWindowController(PInvoke.GetParent(hwnd)); parentController.MessageCaptured += ParentControl_MessageCaptured; }
private bool TreeControl_MessageCaptured(ref Message msg) { switch (msg.Msg) { case WM.USER: fPreventSelChange = false; break; case WM.MBUTTONUP: if (treeControl != null && TreeViewClicked != null) { HandleClick(QTUtility2.PointFromLPARAM(msg.LParam), Control.ModifierKeys, true); } break; case WM.DESTROY: if (treeControl != null) { Marshal.ReleaseComObject(treeControl); treeControl = null; } break; } return(false); }
public TreeViewWrapper(IntPtr hwnd, INameSpaceTreeControl treeControl) { this.treeControl = treeControl; treeController = new NativeWindowController(hwnd); treeController.MessageCaptured += TreeControl_MessageCaptured; parentController = new NativeWindowController(PInvoke.GetParent(hwnd)); parentController.MessageCaptured += ParentControl_MessageCaptured; }
public TreeViewWrapper(IntPtr hwnd, INameSpaceTreeControl treeControl) { BandObjectLib.Logging.Add_DEBUG("Constructor.log", "TreeViewWrapper"); this.treeControl = treeControl; treeController = new NativeWindowController(hwnd); treeController.MessageCaptured += TreeControl_MessageCaptured; parentController = new NativeWindowController(PInvoke.GetParent(hwnd)); parentController.MessageCaptured += ParentControl_MessageCaptured; }
public void Dispose() { if(fDisposed) return; if(treeControl != null) { Marshal.ReleaseComObject(treeControl); treeControl = null; } fDisposed = true; }
public void Dispose() { if (fDisposed) { return; } if (treeControl != null) { Marshal.ReleaseComObject(treeControl); treeControl = null; } fDisposed = true; }
private bool TreeControl_MessageCaptured(ref Message msg) { switch(msg.Msg) { case WM.USER: fPreventSelChange = false; break; case WM.MBUTTONUP: // TODO if(/*!QTUtility.CheckConfig(Settings.NoMidClickTree) &&*/ treeControl != null && TreeViewMiddleClicked != null) { HandleClick(QTUtility2.PointFromLPARAM(msg.LParam), Control.ModifierKeys); } break; case WM.DESTROY: if(treeControl != null) { Marshal.ReleaseComObject(treeControl); treeControl = null; } break; } return false; }
private bool TreeControl_MessageCaptured(ref Message msg) { switch(msg.Msg) { case WM.LBUTTONUP: // TODO: Doesn't seem to ever fire... break; case WM.MBUTTONUP: // TODO if(/*!QTUtility.CheckConfig(Settings.NoMidClickTree) &&*/ treeControl != null && TreeViewMiddleClicked != null) { HandleClick(QTUtility2.PointFromLPARAM(msg.LParam)); } break; case WM.DESTROY: if(treeControl != null) { Marshal.ReleaseComObject(treeControl); treeControl = null; } break; } return false; }
private bool TreeControl_MessageCaptured(ref Message msg) { switch(msg.Msg) { case WM.USER: fPreventSelChange = false; break; case WM.MBUTTONUP: if(treeControl != null && TreeViewClicked != null) { HandleClick(QTUtility2.PointFromLPARAM(msg.LParam), Control.ModifierKeys, true); } break; case WM.DESTROY: if(treeControl != null) { Marshal.ReleaseComObject(treeControl); treeControl = null; } break; } return false; }