Article View: borland.public.cppbuilder.nativeapi
Article #93Re: System Tray Balloon Tips displaying incorrect icons.
From: Remy Lebeau (TeamB)
Date: Tue, 24 Jun 2008 17:05
Date: Tue, 24 Jun 2008 17:05
24 lines
1846 bytes
1846 bytes
"Mike Collins" <its@TheBottomOfThePost> wrote in message news:4861244e@newsgroups.borland.com... > So, like I said, if I call SetBalloonTip(), with a custom icon > (not one of the default ones) my system tray icon also changes. That is because you are changing the tray icon in both calls. You did not say which OS you are running. NIIF_USER only works on XP SP2 and later. For XP SP1 and earlier, NIIF_USER has no effect, thus you cannot apply custom icons. In Vista, use the nid.hBalloonIcon member instead of nid.hIcon. > I overcame it my doing this: > > SetBalloonTip() > SetSysTrayIcon() Only because you are changing the nid.hIcon member in SetBalloonTip(), and then changing it back in SetSysTrayIcon(). Which would suggest that NIIF_USER does not work on your system. Gambit
Technical Details
Message-ID:
<486129a7@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nlpi057.nbdc.sbc.com!prodigy.net!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4861244e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ef219a66c8f2d044,start X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4861244e@newsgroups.borland.com> Subject: Re: System Tray Balloon Tips displaying incorrect icons. Date: Tue, 24 Jun 2008 10:05:28 -0700 Lines: 26 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 207.178.157.90 Message-ID: <486129a7@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1214327207 207.178.157.90 (24 Jun 2008 10:06:47 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nlpi057.nbdc.sbc.com!prodigy.net!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail