winform中加flash,如果完全屏蔽flash右键菜单? 不知道迅雷中的那个广告是怎么做的,flash还可以用左键来操作 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 问题解决了不是给WINFORM一个消息,而是给FLASH控件一个消息,MSG = 516只要在消息处理写上if(msg == 516 ) return (IntPtr) 0;就可以了,呵呵,其它类似的消息和控件都可以这样写 你也可以在Application上考虑一下,比如: class MesFilter : IMessageFilter { public bool PreFilterMessage(ref Message m) { Console.WriteLine(m); if (m.Msg == 0x204|| m.Msg==0x205) { return true; } return false; } } static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { MesFilter mf = new MesFilter(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.AddMessageFilter(mf); Application.Run(new Form1()); Application.RemoveMessageFilter(mf); } } 想屏蔽Flash右键, 是要在Flash里写AS的... 关于完美屏蔽FLASH右键看这个连接http://www.luoge.net/index.php/archives/16 关于Visual Studio 2005 的问题 設計模式的簡單問題 winfrom 怎么从webbrowser获得指定变量的值 关于分页显示数据的问题 内个……小菜鸟mm讨教权限的问题,哥哥姐姐们帮忙,鞠躬ing 用C#实现HTTP协议,返回值总是Bad Request,大家帮忙看看 在sql数据库中如何存储Excel文件 简单的windows程序问题,关于C#的MDI窗口的 关于C#中的数据操作? 想知道怎么样能实现对打印机将要打印的文档实现监控的功能 XXXCMS源码下载 C# 如果把TextBox.Text内容转化为日期类型 急急急!!!
不是给WINFORM一个消息,而是给FLASH控件一个消息,
MSG = 516
只要在消息处理写上
if(msg == 516 ) return (IntPtr) 0;
就可以了,呵呵,其它类似的消息和控件都可以这样写
class MesFilter : IMessageFilter
{
public bool PreFilterMessage(ref Message m)
{
Console.WriteLine(m);
if (m.Msg == 0x204|| m.Msg==0x205)
{
return true;
}
return false;
}
}
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
MesFilter mf = new MesFilter();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.AddMessageFilter(mf);
Application.Run(new Form1());
Application.RemoveMessageFilter(mf);
}
}
看这个连接
http://www.luoge.net/index.php/archives/16