public AnimationMaker(System.Drawing.Size pSize, LedAnimation pAnimation) { this.InitializeComponent(); pAnimation.EAnimation.PageCount = 0; base.Size = pSize; this.displaySize = pSize; this.animation = pAnimation; this.Wpr = new AnimationMaker.FlaWndProc(this.EFFWndProc); this.OldWndProc = AnimationMaker.SetWindowLong(this.player.Handle, -4, this.Wpr); this.ChangeEffect(); }
public AnimationMaker(System.Drawing.Size pSize, LedBackground pBackground) { if (pSize.Width > 1000) { pSize.Width = 1000; } this.isBackgroundModel = true; this.InitializeComponent(); base.Size = pSize; this.displaySize = pSize; this.Wpr = new AnimationMaker.FlaWndProc(this.EFFWndProc); this.OldWndProc = AnimationMaker.SetWindowLong(this.player.Handle, -4, this.Wpr); this.background = pBackground; this.background.PageCount = 0; }
public static extern IntPtr SetWindowLong(IntPtr hWnd, int nIndex, AnimationMaker.FlaWndProc wndProc);