balloon tooltip in systray

forum.advanced.programming (1998-2005)
Matthias Körner

balloon tooltip in systray

Post by Matthias Körner » 02 Feb 2005, 12:48

 Posted by:  Matthias Körner 

Hi all,
has anyone try to implement an balloon tooltip by using Shell_NotifyIconA?
My sample only can´t display this. When I use old or new structure to send
data....
the attached Sample should dispoay an balloon when You click th button...

Matthias Körner

Attachment: ttip.zip

Stefan Beltrame

balloon tooltip in systray

Post by Stefan Beltrame » 02 Feb 2005, 23:38

 Posted by:  Stefan Beltrame 

I made some changes, so it should work now. At least on my machine (WinXP
Pro, SP2)

Regards
Stefan

Attachment: ttip1.zip

Matthias Körner

balloon tooltip in systray

Post by Matthias Körner » 03 Feb 2005, 15:26

 Posted by:  Matthias Körner 

Hey,
thats nice. Such small changes do so big things.
THANK YOU!!

Matthias Körner

Mirko
Italy
Posts: 1434
Joined: 04 Apr 2017, 08:56
Location: Geneva

balloon tooltip in systray

Post by Mirko » 04 Feb 2005, 09:04

 Posted by:  Mirko BONANNO 

Hi,
do you know if we can trap some user action (Click, Right click) on the
baloon ?

Thanks
Mirko

Stefan Beltrame

balloon tooltip in systray

Post by Stefan Beltrame » 04 Feb 2005, 11:05

 Posted by:  Stefan Beltrame 

AFAIK the only events you can catch on the ballontip itself are the NIN_*
messages

NIN_BALLOONSHOW
NIN_BALLOONHIDE
NIN_BALLOONTIMEOUT
NIN_BALLOONUSERCLICK

Regards
Stefan

Mirko
Italy
Posts: 1434
Joined: 04 Apr 2017, 08:56
Location: Geneva

balloon tooltip in systray

Post by Mirko » 04 Feb 2005, 13:46

 Posted by:  Mirko BONANNO 

Hi Stefan,
does it mean that on the message actions of the form (frm1 in your sample) I
can trap the event NIN_BALLOONUSERCLICK ?
Could you post the value of this constant please ?
I found somewhere (=WM_USER+4) but I cannot trap that :-(

Thanks
Mirko

Stefan Beltrame

balloon tooltip in systray

Post by Stefan Beltrame » 04 Feb 2005, 15:39

 Posted by:  Stefan Beltrame 

WM_USER = 0x0400
NIN_BALLOONUSERCLICK is WM_USER + 5
PM_TrayNotify = SAM_User + 1

Call Tray(...) with flag NIF_MESSAGE and nCallBack PM_TrayNotify. Where
PM_TrayNotify is a user defined message in Gupta (SAM_User + something)

Handle PM_TrayNotify in the form message action.

See attached sample.

Regards
Stefan

Attachment: ttip2.zip

Mirko
Italy
Posts: 1434
Joined: 04 Apr 2017, 08:56
Location: Geneva

balloon tooltip in systray

Post by Mirko » 04 Feb 2005, 17:07

 Posted by:  Mirko BONANNO 

Thanks a lot Stefan
:-)))

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot] and 0 guests