winform中加flash,如果完全屏蔽flash右键菜单?

ALLsharps 2007-08-02 02:21:31
winform中加flash,如果完全屏蔽flash右键菜单?

或者改成自定义的C#菜单也可以,

我想的话,是不是当右键点击flash时,windows会给winform一个消息,然后可以在这个消息里面做文章??如果这样可以的话,具体要怎么写,
...全文
407 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
cc63137007 2007-10-09
  • 打赏
  • 举报
回复
关于完美屏蔽FLASH右键
看这个连接
http://www.luoge.net/index.php/archives/16
shinaterry 2007-08-07
  • 打赏
  • 举报
回复
想屏蔽Flash右键, 是要在Flash里写AS的...
北京的雾霾天 2007-08-07
  • 打赏
  • 举报
回复
你也可以在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);
}
}
洋溢2016 2007-08-07
  • 打赏
  • 举报
回复
:)
洋溢2016 2007-08-07
  • 打赏
  • 举报
回复
o
ALLsharps 2007-08-02
  • 打赏
  • 举报
回复
问题解决了
不是给WINFORM一个消息,而是给FLASH控件一个消息,
MSG = 516
只要在消息处理写上
if(msg == 516 ) return (IntPtr) 0;
就可以了,呵呵,其它类似的消息和控件都可以这样写
ALLsharps 2007-08-02
  • 打赏
  • 举报
回复
没有人做过这方面的吗?
ALLsharps 2007-08-02
  • 打赏
  • 举报
回复
不知道迅雷中的那个广告是怎么做的,

flash还可以用左键来操作

110,567

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧