| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Visual C++ Programming Ask questions about Windows programming with Visual C++ and help others by answering their questions. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to receive notification of a click on the close button of a balloon tooltip?
I created my own balloon tooltip with the TTS_CLOSE style but I can't seem to find any info on how to receive a notification when the close button is clicked. Any idea how to do it?
|
|
#2
|
||||
|
||||
|
Re: How to receive notification of a click on the close button of a balloon tooltip?
There is no notification message sent when you press the X button in a balloon tooltip. See the explanation here: http://blogs.msdn.com/oldnewthing/ar.../14/55287.aspx.
__________________
Marius BancilaHome Page | Blog My CodeGuru articles My latest articles: A TR1 Tutorial: array, tuple, unordered containers, random number generators, regex, smart pointers Customizable alert window Try my VSBuildStatus add-in for Visual Studio 2005, 2008 & 2010 (v1.1). I do not offer technical support via PM or e-mail. Please use vbBulletin codes. |
|
#3
|
|||
|
|||
|
Re: How to receive notification of a click on the close button of a balloon tooltip?
Thanks, man. I happened to find it myself as well. Don't you think that it's a totally ridiculous reason not to implement it? I mean, there are plenty of annoying windows as well, so why not limit the Close button notification on them as well? Pretty much like the first guy pointed out in the comments section to that link, that one of those annoying windows/balloons is Windows Update.
Also how come I can find out if the tray notification balloon was canceled but not if I create that balloon myself (from outside of a system tray)? And, here's a totally legitimate reason to use that notification. When I display a balloon tooltip that the update is ready for my program, I want to give a user an option. If they click on that balloon I will redirect them to a web site that provides them with an update, but if they click cancel, such web site will not be displayed and the update will not be shown again. But now, after Microsoft decided to think for me, I have no choice but to display the update website whether someone clicks on the balloon or on the close button for it. Like if that wouldn't make it annoying... |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|