Article View: borland.public.cppbuilder.nativeapi
Article #588Re: custom icons / images in system tray balloon tips
From: Mike Collins
Date: Sat, 01 Mar 2008 12:49
Date: Sat, 01 Mar 2008 12:49
33 lines
2281 bytes
2281 bytes
Thanks for the reply - weird results though. I've implimentated what has
been suggested but whist i get the balloon icon changed, it does not
corrispond to the icon that i specify. My code below should display the
applciations default icon but actually, i get the wi-fi connection icon
being displayed - which has nothing to do with my application. My code
looks like this
nid.uFlags = NIF_INFO; // tried with and without this...
nid.dwInfoFlags = NIIF_USER; // couldn't find a def for this so
defined it as 4
HICON hIcon = (HICON)::LoadImage(HInstance, MAKEINTRESOURCE(101),
IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);
nid.hIcon = hIcon;
bRtn = (bool)Shell_NotifyIcon(NIM_MODIFY, &nid);
::DestroyIcon(hIcon);
Any ideas?
Thanks again,
Mike
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:47c852f5$3@newsgroups.borland.com...
>
> "Mike Collins" <its@TheBottomOfThePost> wrote in message
> news:47c7e508@newsgroups.borland.com...
>
>> I've got a system tray *application* which displays balloon tips in
>> response to certain events. I've no problem with this aspect but
>> now I want to display my own x16 icon in the actual balloon tip.
>
Technical Details
Message-ID:
<47c94ea5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<47c7e508@newsgroups.borland.com> <47c852f5$3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,477f3cd7b2ba5336 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost> Newsgroups: borland.public.cppbuilder.nativeapi References: <47c7e508@newsgroups.borland.com> <47c852f5$3@newsgroups.borland.com> Subject: Re: custom icons / images in system tray balloon tips Date: Sat, 1 Mar 2008 12:49:53 -0000 Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.3959 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133 NNTP-Posting-Host: 78.150.202.61 Message-ID: <47c94ea5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1204375205 78.150.202.61 (1 Mar 2008 04:40:05 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail