mfc >> Balloon tool tip with Close Button

by sujamoljames » Fri, 23 Apr 2004 00:14:24 GMT

Hi All,
In Win2000, I need to display a Balloon tool tip in the Taskbar. For
that I used the Shell_NotifyIcon() function and is displaying the
ballon tool tip. I used the follwing code. But how to add a Close
("X") button to the balloon box.

void ShowBalloon()
{
m_pIconData->dwInfoFlags = NIIF_WARNING
m_pIconData->uFlags |= NIF_INFO;
m_pIconData->uTimeout = nTimeOut;
strcpy(m_pIconData->szInfoTitle, szBalloonTitle);
strcpy(m_pIconData->szInfo, szBalloonMsg);
Shell_NotifyIcon(NIM_MODIFY, m_pIconData);
}

How I can display a Close ("X") button in the ballon area.

Thanks in advance
Suja.

mfc >> Balloon tool tip with Close Button

by Neel Roy » Fri, 23 Apr 2004 01:52:42 GMT


Lookup 'Using ToolTip Controls' topic in MSDN ...
Its all mentioned there...

mfc >> Balloon tool tip with Close Button

by sujamoljames » Sat, 24 Apr 2004 18:48:28 GMT

Hi
I found that topic in MSDN. But there is no documentation about
displayng a Close(0 or any custome button in Ballon Tool tip.
Does any one have any source code ??

Regards
Suja

mfc >> Balloon tool tip with Close Button

by Raymond Chen » Sun, 25 Apr 2004 02:22:42 GMT

The "X" button is a new feature for Windows XP.

mfc >> Balloon tool tip with Close Button

by sujamoljames » Mon, 26 Apr 2004 01:15:13 GMT

H
i
Actuallay MSN messenger has such tool tips in Windows 2000
Does anyone had any custom source code or third party component available...

Regards
Suja

Similar Threads

1. How to use Balloon Tool tips

2. Mouse over button tool-tip

Hi,
I've tried looking but couldn't find any relevant information about it. I 
have an image button that when I move my mouse over it I want it to show 
some string in a yellow small box (tool-tip).
How do I it? :)
Thanks in advance.
btw: Using VS2005. 


3. Blank buttons left on tool bar when app closes - Borland C++ Builder VCL Components

4. NotifyIcon Balloon Tip Timeout

Visual Studio 2005, C#

notifyIcon1.ShowBalloonTip(10, "Test", "Test", ToolTipIcon.Info);

I've tried all sorts of timeout values, but the balloon tip always shows for 
30 seconds.

Is this a bug? 


5. Killing a Shell_NotifyIcon balloon tip and powering on monitor in C# - CSharp/C#

6. How to make Balloon tips ?

You know those little balloon tips that come out of your task bar- like for 
example when Windows warns you about window supdates being available? I'd 
like to create some of those from my C# app...

Can you tell me how?

I want to use it to notify users of an event while my program is running in 
the background (possibly as a service) and it would be really nice if I can 
add clickable links in that blaloon tip to open a window for details. Alot of 
apps are starting to use this method to communicate with the user and I like 
it... Anti virus scanners and software firewalls among some examples...

7. Hide balloon tip icon - CSharp/C#

8. Hide Balloon Tip

Hi,

I have a Windows application (VS2005) where I am using a notifyIcon in 
the tray, and showing a balloon tip when certain events occur.

No matter what I set the timeout to, the balloon tip will not disappear 
unless it is interacted with.
I am trying to get it to pop up for a few seconds and then go away.

I thought of using another timer and hiding it, but there doesn't appear 
to be a way of hiding it.


Can anybody help me here?


Thanks.



Paul