🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4505

Re: Receiving NIN_BALLOONUSERCLICK from system tray balloon

#4505
From: JD
Date: Wed, 18 Jan 2006 14:46
21 lines
1879 bytes
Darko Miletic <darko@uvcms.com> wrote:
>
> [...] component creates hidden window with AllocateHwnd
> internaly.

Interesting. This suggests a complete rewrite of the component
because one of it's fatal bugs was that it's associated HWND
*could* be recreated which would quere the whole deal.

> To get around this issue user needs to inherit TCustomTrayIcon
> in a new component

You don't need to subclass the control because you could
subclass it's WndProc method instead. If the WndProc method
isn't exposed, subclassing the control won't do any good.

Another possible solution might be if the Allocate(d)HWnd
is exposed, you could hook into it's messages.

~ JD
Technical Details
Message-ID: <43ce62bc$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <0dbqs15pnttts94lrl0gfkv1qmdi5r7v2g@4ax.com> <43cd446a$1@newsgroups.borland.com> <etiqs1l4jrqdiv9tmdtvn21ea51agjh5rr@4ax.com> <43cd4df1$1@newsgroups.borland.com> <4rjqs1tm8kga0600i4ifonpfa0erubkh7l@4ax.com> <43ce40cc$1@newsgroups.borland.com> <43ce56ed@newsgroups.borland.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.140.226.93
References: <0dbqs15pnttts94lrl0gfkv1qmdi5r7v2g@4ax.com> <43cd446a$1@newsgroups.borland.com> <etiqs1l4jrqdiv9tmdtvn21ea51agjh5rr@4ax.com> <43cd4df1$1@newsgroups.borland.com> <4rjqs1tm8kga0600i4ifonpfa0erubkh7l@4ax.com> <43ce40cc$1@newsgroups.borland.com> <43ce56ed@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <43ce62bc$1@newsgroups.borland.com>
Date: 18 Jan 2006 07:46:04 -0700
X-Trace: newsgroups.borland.com 1137599164 207.105.83.66 (18 Jan 2006 07:46:04 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail