您的位置:程序门 -> .net技术 -> c#



如何屏蔽windows的开始菜单,用自己的控件代替之


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


如何屏蔽windows的开始菜单,用自己的控件代替之[已结贴,结贴人:nale]
发表于:2007-01-10 10:52:57 楼主
就像美萍的那个网吧管理软件一样,用其自定义的按钮替代了windows的开始菜单.
发表于:2007-01-10 11:00:191楼 得分:5
使用   wndprochooker   类
发表于:2007-01-10 11:04:512楼 得分:0
在msdn中没找到这个类啊
发表于:2007-01-10 11:07:083楼 得分:0
发表于:2007-01-10 12:07:514楼 得分:0
自己up一下
发表于:2007-01-10 12:22:315楼 得分:95
调用api来控制任务栏显示和隐藏。
[dllimport( "user32.dll ")]
public   static   extern   intptr   findwindowex(intptr   ph,   intptr   ch,   string   cn,   string   wn);
[dllimport( "user32.dll ")]
public   static   extern   bool   showwindow(intptr   hwnd,   long   ncmdshow   );


intptr   handle   =   findwindowexintptr.zero,intptr.zero, "shell_traywnd ",null);
showwindow(handle,0);//隐藏任务栏,获取显示屏的大小,再把窗体设置为显示屏的大小即可

intptr   handle   =   findwindowex(intptr.zero,intptr.zero, "shell_traywnd ",null);
showwindow(handle,1);//显示任务栏
发表于:2007-01-10 12:26:426楼 得分:0
mark一下,学习。
发表于:2007-01-10 12:30:387楼 得分:0
确实需要调用api
发表于:2007-01-10 12:44:508楼 得分:0
等下试试,
发表于:2007-01-10 13:11:559楼 得分:0
只想屏蔽那个 "开始 "按钮,有什么好的办法吗?
发表于:2007-01-10 13:20:3610楼 得分:0
学习
发表于:2007-01-10 13:51:5311楼 得分:0
搞定了.
intptr   handle   =   syswin32.findwindow( "shell_traywnd ",   null);
handle   =   syswin32.findwindowex(handle,   intptr.zero,   "button ",   null);
syswin32.showwindow(handle,   0);


快速检索

最新资讯
热门点击