Пример #1
0
                /*! \brief Update this object with the current state of the caret.  */
                public override void Update()
                {
                    base.Update();

                    Window = GetInstance(WindowHandle);
                    Icon   = (Window != null) ? Window.GetIcon(IconHandle) : null;
                }
Пример #2
0
                //! \brief Update this object with the current state of the pointer.
                public void Update()
                {
                    var block = new NativeWimp.PointerBlock();

                    Wimp.GetPointerInfo(out block);

                    Pos.X        = block.Pos.X;
                    Pos.Y        = block.Pos.Y;
                    Buttons      = (ButtonState)block.Buttons;
                    WindowHandle = block.WindowHandle;
                    IconHandle   = block.IconHandle;

                    Window = GetInstance(WindowHandle);
                    Icon   = Window != null?Window.GetIcon(IconHandle) : null;
                }
Пример #3
0
 public CaretEventArgs(IntPtr unmanagedEventData) : base(unmanagedEventData)
 {
     Window = GetInstance(WindowHandle);
     Icon   = (Window != null) ? Window.GetIcon(IconHandle) : null;
 }