Article View: borland.public.cppbuilder.nativeapi
Article #4496Re: Receiving NIN_BALLOONUSERCLICK from system tray balloon
From: JD
Date: Tue, 17 Jan 2006 18:24
Date: Tue, 17 Jan 2006 18:24
32 lines
1852 bytes
1852 bytes
Kris <x.y@xyz.xx> wrote:
>
> The new TTrayIcon component of C++ Builder 2006 makes it
> very easy to create system tray balloons :
So does this:
http://groups.google.com/group/borland.public.cppbuilder.vcl.components.using/msg/57af11b9a35689b0
and if it's the same TTrayIcon (only slightly modified) as
previouse versions of BCB, it's full of bugs.
> The NIN_BALLOONUSERCLICK was unknown to builder 2006
Examine the header file (at the top) of the above link. That
message is handled in the code.
// M$ says this should be 0x0500 for shellapi >= 5.0
// but cpp needs it to be 0x0501 or 0x0600
#undef _WIN32_IE
#define _WIN32_IE 0x0501
> so I grabbed its definition from the Windows SDK's ShellAPI.h.
You did a poor job because it is not:
> #define NIN_BALLOONUSERCLICK (WM_USER + 5)
WM_USER is reserved for us and *not* used by Windows.
~ JD
Technical Details
Message-ID:
<43cd446a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!pln-w!lotsanews.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<0dbqs15pnttts94lrl0gfkv1qmdi5r7v2g@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2165941223f42fca X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: Re: Receiving NIN_BALLOONUSERCLICK from system tray balloon Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 205.188.116.136 X-Forwarded-For: 172.134.5.236 References: <0dbqs15pnttts94lrl0gfkv1qmdi5r7v2g@4ax.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <43cd446a$1@newsgroups.borland.com> Date: 17 Jan 2006 11:24:26 -0700 X-Trace: newsgroups.borland.com 1137525866 207.105.83.66 (17 Jan 2006 11:24:26 -0700) Lines: 33 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!pln-w!lotsanews.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail