public SelectVideoPlayerDialogView()
 {
     InitializeComponent();
     SuppressScriptErrors(this.wb, true);
     this.Wpr        = new FlaWndProc(this.FlashWndProc);
     this.OldWndProc = SetWindowLong(this.wb.Handle, GWL_WNDPROC, Wpr);
 }
Пример #2
0
 public MainForm()
 {
     InitializeComponent();
     this.Wpr          = new FlaWndProc(this.FlashWndProc);
     this.OldWndProc   = SetWindowLong(FlashPlayer.Handle, GWL_WNDPROC, Wpr); //关联flash控件
     FlashPlayer.Movie = BaseDirectory + "\\f21.swf";
     FlashPlayer.Play();
     this.StartPosition = FormStartPosition.CenterScreen;
     Application.Idle  += new EventHandler(Application_Idle);
     m_pMainWnd         = this;
 }
Пример #3
0
 public static extern IntPtr SetWindowLong(IntPtr hWnd, int nIndex, FlaWndProc wndProc);