c#完全屏蔽Flash右键菜单
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace FlashPlayer
{
public partial class Form1 : Form
{
Disable Flash's Context Menu
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e) {
this.Wpr = new FlaWndProc(this.FlashWndProc);
this.OldWndProc = SetWindowLong(axShockwaveFlash1.Handle, GWL_WNDPROC, Wpr);
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace FlashPlayer
{
public partial class Form1 : Form
{
Disable Flash's Context Menu
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e) {
this.Wpr = new FlaWndProc(this.FlashWndProc);
this.OldWndProc = SetWindowLong(axShockwaveFlash1.Handle, GWL_WNDPROC, Wpr);
}
}
}
posted on 2007-10-16 23:40 Boringlamb 阅读(1204) 评论(2) 编辑 收藏 举报