コード例 #1
0
 public SelectVideoPlayerDialogView()
 {
     InitializeComponent();
     SuppressScriptErrors(this.wb, true);
     this.Wpr        = new FlaWndProc(this.FlashWndProc);
     this.OldWndProc = SetWindowLong(this.wb.Handle, GWL_WNDPROC, Wpr);
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: hszc/unity3d_test
 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
ファイル: MainForm.cs プロジェクト: hszc/unity3d_test
 public static extern IntPtr SetWindowLong(IntPtr hWnd, int nIndex, FlaWndProc wndProc);