Boringlamb's cnblog - Just like a Taurus!

Yesterday is History. Tomorrow is a Mystery, and Today is a gift. That's why we call it the Present.

导航

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);
        }

    }

}

posted on 2007-10-16 23:40  Boringlamb  阅读(1202)  评论(2编辑  收藏  举报