Re: any idea to hide a traybar icon of other application?
From: Jaime Stuardo (jstuardo_at_manquehue.net)
Date: 01/19/05
- Next message: Bhushan Kalse: "Re: SetCursor()/LoadCursor() does not work."
- Previous message: Jeff Partch [MVP]: "Re: SetCursor()/LoadCursor() does not work."
- In reply to: selvam: "RE: any idea to hide a traybar icon of other application?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 19 Jan 2005 10:29:00 -0300
That's the point. I know the usage of Shell_NotifyIcon API, but I need some
application data I don't know at first, hWnd and uID.
To get the hWnd I tried to use FindWindowAPI, but how can I find the icon in
the traybar? I tried by usng that API passing the ToolbarWindow32 class but
I didn't succeed.
The same problem I will have to get uID element.
Any further help will be greatly appreciated.
Thanks
Jaime
"selvam" <selvam@discussions.microsoft.com> wrote in message
news:B159F63B-27BA-4B35-9A82-C2879CB66BD9@microsoft.com...
>
> "Jaime Stuardo" wrote:
>
>> Hi all..
>>
>> I need to know how can I hide other applicatin traybar icon. For example,
>> if
>> I want the MSN messanger icon to be hidden by mean of an application I
>> programmed.
>>
>> I program in MFC and ATL, VC++ 6.0
>>
>> Thanks in advance
>> Jaime
>>
>>
> Hi,
>
> Try this.
>
>
>
> // for remove, only provide cbSize, hWnd and uID!
> NOTIFYICONDATA tnid;
> tnid.cbSize = sizeof(NOTIFYICONDATA);
> tnid.hWnd = m_hWnd;
> tnid.uID = IDI_ICONNAME;
>
> // call to Shell_NotifyIcon with NIM_DEL parameter
> Shell_NotifyIcon(NIM_DELETE, &tnid);
>
>
>
> Regards,
> Selvam
>
- Next message: Bhushan Kalse: "Re: SetCursor()/LoadCursor() does not work."
- Previous message: Jeff Partch [MVP]: "Re: SetCursor()/LoadCursor() does not work."
- In reply to: selvam: "RE: any idea to hide a traybar icon of other application?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|