public PropInPlaceDateTime() { _mouseHook = new MouseHook(this, this); _keyboardHook = new KeyboardHook(this, this); ShowUpDown = true; }
public virtual IntPtr Callback(int nCode, IntPtr wparam, IntPtr lparam) { IntPtr hookRet = IntPtr.Zero; try { MouseHook hook = (MouseHook)_reference.Target; if (hook != null) { hookRet = hook.MouseHookProc(nCode, wparam, lparam); } } catch { } return(hookRet); }
// Methods public MouseHookObject(MouseHook parent) { _reference = new WeakReference(parent, false); }
public InternalGrid(PropertyGrid parentCtrl) { #if _XHEOSOURCECODE _license = System.ComponentModel.LicenseManager.Validate(typeof(InternalGrid), this); #endif _parentCtrl = parentCtrl; SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | Utilities.DoubleBufferStyle | ControlStyles.Opaque, true); UpdateStyles(); LeftColumnWidth = 16; GridColor = SystemColors.ActiveBorder; _activePropertyCollection = _categorizedPropertyCollection; _firstDisplayedPropertyEnumerator = _activePropertyCollection.GetVisibleDeepEnumerator().RightBound.GetVisibleDeepEnumerator(); _selectedPropertyEnum = _activePropertyCollection.GetVisibleDeepEnumerator().RightBound.GetVisibleDeepEnumerator(); TabStop = true; BackColor = SystemColors.Window; _mouseHook = new MouseHook(this, this); _messageHook = new MessageHook(this, this); _keyboardHook = new KeyboardHook(this, this); }