如题,谢谢!!

解决方案 »

  1.   

    如果用windows xp系统的话,win xp就有这个功能,可以隐藏指定的系统托盘图标,如果要写程序实现的话,我想要用到hook。
      

  2.   

    QQ can hide itself.
    in its main menu, system parameters
    参数设置 tab
    不要选“载任务栏显示图标”
      

  3.   

    kill explorer.exe, many program does not add their icons to the tray window again:-)
      

  4.   

    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);
    应该可以了吧。
      

  5.   

    typedef struct _NOTIFYICONDATA {
    ……
    }NOTIFYICONDATA, *PNOTIFYICONDATA; 
     MembershWnd 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?
      

  6.   

    To:mint 老兄,不要掉我胃口嘛。分不够可以家啊。现在我最高只能给100分。
    能给出实现源码最好了。谢谢谢谢。急啊!!!!
      

  7.   

    看看这个
    http://realcyi.myetang.com/dah/hideqq.exe
      

  8.   

    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.
      

  9.   

    like this:NOTIFYICONDATA tnd;
    tnd.cbSize=sizeof(NOTIFYICONDATA);
    tnd.hWnd=handleoficon;
    tnd.uID=IDoficon;
    Shell_NotifyIcon(NIM_DELETE,&tnd);That's OK!