/*! \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; }
//! \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; }
public CaretEventArgs(IntPtr unmanagedEventData) : base(unmanagedEventData) { Window = GetInstance(WindowHandle); Icon = (Window != null) ? Window.GetIcon(IconHandle) : null; }