protected virtual void OnSetCursor(SetCursorEventArgs e) { var handler = SetCursor; if (handler != null) { handler(this, e); } }
private void WmSetCursor(ref Message m) { var e = new SetCursorEventArgs( PointToClient(Cursor.Position), (HitTest)(m.LParam.ToInt32() & 0xffff) ); OnSetCursor(e); Cursor.Current = e.Cursor ?? Cursor; }