Esempio n. 1
0
            public virtual IntPtr Callback(int nCode, IntPtr wparam, IntPtr lparam)
            {
                IntPtr hookRet = IntPtr.Zero;

                try
                {
                    MessageHook hook = (MessageHook)_reference.Target;
                    if (hook != null)
                    {
                        hookRet = hook.MessageHookProc(nCode, wparam, lparam);
                    }
                }
                catch
                {
                }

                return(hookRet);
            }
Esempio n. 2
0
 // Methods
 public MessageHookObject(MessageHook parent)
 {
     _reference = new WeakReference(parent, false);
 }
Esempio n. 3
0
 // Methods
 public MessageHookObject(MessageHook parent)
 {
     _reference = new WeakReference(parent, false);
 }
Esempio n. 4
0
        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);
        }