public static unsafe void ProcessActivate(ref WindowMessage msg, EventedWindowCore window) { fixed(WindowMessage *ptr = &msg) { var packet = new ActivatePacket(ptr); window.OnActivate(ref packet); } }
protected internal virtual void OnActivate(ref ActivatePacket packet) { unsafe { this.OnMessageDefault(ref ((WindowMessageWrapper *)packet.Message)->Value); } }