Article View: borland.public.cppbuilder.nativeapi
Article #581Re: custom icons / images in system tray balloon tips
From: Remy Lebeau (TeamB)
Date: Fri, 29 Feb 2008 18:46
Date: Fri, 29 Feb 2008 18:46
22 lines
1823 bytes
1823 bytes
"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.
Did you read the documentation for NOTIFYICONDATA yet? It tells you exactly
how to do that:
NOTIFYICONDATA Structure
http://msdn2.microsoft.com/en-us/library/bb773352(VS.85).aspx
In a nutshell, on XP SP2 and later, you can set the uFlags member to
NIF_INFO to enable a balloon tooltip, set the dwInfoFlags member to
NIIF_USER to specify a custom icon, and then put your custom icon into the
hIcon member. On Vista and later, there is a new hBalloonIcon member that
you can use instead of the hIcon member.
Gambit
Technical Details
Message-ID:
<47c852f5$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<47c7e508@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <47c7e508@newsgroups.borland.com> Subject: Re: custom icons / images in system tray balloon tips Date: Fri, 29 Feb 2008 10:46:37 -0800 Lines: 24 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: <47c852f5$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1204310773 207.178.157.90 (29 Feb 2008 10:46:13 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail