请问如何获取系统托盘上有显示那些图标,并如何隐藏相应的图标? 同题!谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 比较简单的方法,装各aston桌面主题,这个就有隐藏又下角图标的功能给几个图片你看看吧。 图片还不能贴呢给个软件下载地址吧:http://www.pconline.com.cn/pcedu/tuijian/desktop/assist/0307/195406.html 要用API才能实现。调用user32.dllFindClass=FindWindow("Shell_TrayWnd","")Handle=FindWindowEx(FindClass,0,TrayNotifyWnd","")ShowWindow(Handle,1)以上是用来显示托盘隐藏也很简单FindClass=FindWindow("Sheel_TrayWnd","")Handle=FindWindowEx(FindClass,0,TrayNotifyWnd","")ShowWindow(Hadle,0)以上就隐藏托盘上面用到的这三个函数你去查一查API怎么声明,在程序中声明一下就行了。 看到楼上 nocolor(悟空) 的回帖,偶联想起那句“only you ………………” 能说一下调用user32.dll里面的那个函数吗?我在msdn里没找到 我找到了这三个,但下面的调用还是不清楚[DllImport("User32.dll",EntryPoint="FindWindow")] private static extern int FindWindow(string lpClassName,string lpWindowName); [DllImport("user32.dll")]public static extern IntPtr FindWindowEx(IntPtr hwndParent,IntPtr hwndChildAfter,string lpszClass,string lpszWindow);[DllImport("user32.dll", EntryPoint="ShowWindow", CharSet=CharSet.Auto)]public static extern int ShowWindow(IntPtr hwnd,int nCmdShow); 怎么遍历Object类型的数据,或者有什么算法 combobox控件的简单问题 asp:Repeater 里asp:DropDownList js 传当前行 多线程如何传递参数? 怎样在 GDI+ 中用鼠标 高效 画选区 求助,数据库问题? c#如何获得当前文件夹的相对路径 提问:web.comfig的一下配置文件有什么错误呀 怎样让C#程序脱离studio.net编程环境运行 如何创建自定义控件的DesignTime可编辑属性? 马上向朝阳区政府信息办交货,出现了Repeater中按钮不触发事件的情况 C#,winform中dataGrid控件如何进行更新 编辑 删除操作
给几个图片你看看吧。
给个软件下载地址吧:http://www.pconline.com.cn/pcedu/tuijian/desktop/assist/0307/195406.html
调用user32.dll
FindClass=FindWindow("Shell_TrayWnd","")
Handle=FindWindowEx(FindClass,0,TrayNotifyWnd","")
ShowWindow(Handle,1)
以上是用来显示托盘隐藏也很简单
FindClass=FindWindow("Sheel_TrayWnd","")
Handle=FindWindowEx(FindClass,0,TrayNotifyWnd","")
ShowWindow(Hadle,0)
以上就隐藏托盘
上面用到的这三个函数你去查一查API怎么声明,在程序中声明一下就行了。
我在msdn里没找到
[DllImport("User32.dll",EntryPoint="FindWindow")]
private static extern int FindWindow(string lpClassName,string lpWindowName); [DllImport("user32.dll")]
public static extern IntPtr FindWindowEx(IntPtr hwndParent,IntPtr hwndChildAfter,string lpszClass,string lpszWindow);[DllImport("user32.dll", EntryPoint="ShowWindow", CharSet=CharSet.Auto)]
public static extern int ShowWindow(IntPtr hwnd,int nCmdShow);