🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Receiving NIN_BALLOONUSERCLICK from system tray balloon

#4499
From: Kris
Date: Tue, 17 Jan 2006 20:19
41 lines
2128 bytes
On Tue, 17 Jan 2006 21:07:44 +0100, "Vladimir Stefanovic"
<antivari@po.sbb.co.yu> wrote:
>Do you have NO_WIN32_LEAN_AND_MEAN defined

Yes. I did :-) And removing it does indeed solve the compilation
problems I was having with JD's sample code.

However, I explicitly added this NO_WIN32_LEAN_AND_MEAN because
otherwise I was unable to use this :
#include "shlobj.h" => Without the LEAN_MEAN you get several errors
SHGetFolderPath(
	NULL,
	CSIDL_COMMON_APPDATA,
	NULL,
	0,
	szPath);

Haven't yet tried actually using JD's code but this also makes me
wonder what is still wrong with my original code. NIN_BALLOONUSERCLICK
is now correctly defined. So :

class TMainForm : public TForm
{
protected:
void __fastcall NINBalloonUserClick (TMessage &Msg);
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER (NIN_BALLOONUSERCLICK, TMessage,NINBalloonUserClick)
END_MESSAGE_MAP (TForm)
...
}

void __fastcall TMainForm::NINBalloonUserClick (TMessage &Msg)
{
	Caption="Click Balloon";
}

should work. But it still doesn't... Anyone any ideas ???

Thanks.

Kris
Technical Details
Message-ID: <4rjqs1tm8kga0600i4ifonpfa0erubkh7l@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2165941223f42fca
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Kris <x.y@xyz.xx>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Receiving NIN_BALLOONUSERCLICK from system tray balloon
Date: Tue, 17 Jan 2006 21:19:37 +0100
Message-ID: <4rjqs1tm8kga0600i4ifonpfa0erubkh7l@4ax.com>
References: <0dbqs15pnttts94lrl0gfkv1qmdi5r7v2g@4ax.com> <43cd446a$1@newsgroups.borland.com> <etiqs1l4jrqdiv9tmdtvn21ea51agjh5rr@4ax.com> <43cd4df1$1@newsgroups.borland.com>
X-Newsreader: Forte Free Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.11.225.129
X-Trace: newsgroups.borland.com 1137529017 81.11.225.129 (17 Jan 2006 12:16:57 -0700)
Lines: 42
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!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