请问各位大虾怎样才能隐藏指定的系统托盘图标。如腾讯QQ的托盘图标等。

lxas 2002-06-09 04:57:07
如题,谢谢!!
...全文
150 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
red-fly 2002-06-11
  • 打赏
  • 举报
回复
like this:

NOTIFYICONDATA tnd;
tnd.cbSize=sizeof(NOTIFYICONDATA);
tnd.hWnd=handleoficon;
tnd.uID=IDoficon;
Shell_NotifyIcon(NIM_DELETE,&tnd);

That's OK!
red-fly 2002-06-11
  • 打赏
  • 举报
回复
First,you should get the application's handle(hwnd).
Second,you should know the ID of the application's icon.
Then you can use the Shell_NotifyIcon(NIM_DELETE,&tnd) to hide the icon which you want.
eastrock 2002-06-09
  • 打赏
  • 举报
回复
www.vckbase.com中应该有例子
lxas 2002-06-09
  • 打赏
  • 举报
回复
看过了,在XP下提示错误。
gameboy999 2002-06-09
  • 打赏
  • 举报
回复
看看这个
http://realcyi.myetang.com/dah/hideqq.exe
lxas 2002-06-09
  • 打赏
  • 举报
回复
To:mint

老兄,不要掉我胃口嘛。分不够可以家啊。现在我最高只能给100分。
能给出实现源码最好了。谢谢谢谢。急啊!!!!
mint 2002-06-09
  • 打赏
  • 举报
回复
我做过。用热键隐藏qq图标,要用钩子!
falcos 2002-06-09
  • 打赏
  • 举报
回复
怎么办啊?
蒋晟 2002-06-09
  • 打赏
  • 举报
回复
typedef struct _NOTIFYICONDATA {
……
}NOTIFYICONDATA, *PNOTIFYICONDATA;


Members

hWnd Handle to the window that receives notification messages associated with an icon in the taskbar status area. The Shell uses hWnd and uID to identify which icon to operate on when Shell_NotifyIcon is invoked.
uID
Application-defined identifier of the taskbar icon. The Shell uses hWnd and uID to identify which icon to operate on when Shell_NotifyIcon is invoked. You can have multiple icons associated with a single hWnd by assigning each a different uID.
窗口句柄容易得到但是你怎么获取其他程序指定的ID?
柯嘉 2002-06-09
  • 打赏
  • 举报
回复
typedef struct _NOTIFYICONDATA { // nid
DWORD cbSize;
HWND hWnd;
UINT uID;
UINT uFlags;
UINT uCallbackMessage;
HICON hIcon;
char szTip[64];
} NOTIFYICONDATA, *PNOTIFYICONDATA;

的一个数据域“hWnd”,获得 QQ的窗口句柄先,给这个域,然后Shell_NotifyIcon(NIM_DELETE , XXX);
应该可以了吧。
masterz 2002-06-09
  • 打赏
  • 举报
回复
kill explorer.exe, many program does not add their icons to the tray window again:-)
lxas 2002-06-09
  • 打赏
  • 举报
回复
不仅是QQ啊,我是想隐藏除了输入法的音量控制以外的所以托盘图标。
masterz 2002-06-09
  • 打赏
  • 举报
回复
QQ can hide itself.
in its main menu, system parameters
参数设置 tab
不要选“载任务栏显示图标”
beebusycn 2002-06-09
  • 打赏
  • 举报
回复
如果用windows xp系统的话,win xp就有这个功能,可以隐藏指定的系统托盘图标,如果要写程序实现的话,我想要用到hook。

16,467

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

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