CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Deploying Windows Server 2008 with System Center
  • Remote Desktop Protocol Performance Improvements in Windows Server 2008 R2 and Windows 7
  • The Microsoft Dynamics CRM Security Model
  • SQL Server Modeling Services with Microsoft Visual Studio 2010 Beta 2

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Visual C++ Programming
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Visual C++ Programming Ask questions about Windows programming with Visual C++ and help others by answering their questions.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old October 30th, 2009, 02:34 AM
    ahmd ahmd is offline
    Member
     
    Join Date: Feb 2009
    Posts: 318
    ahmd is an unknown quantity at this point (<10)
    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?
    Reply With Quote
      #2    
    Old October 30th, 2009, 03:44 AM
    cilu's Avatar
    cilu cilu is offline
    Moderator/Reviewer/MS MVP
    Power Poster
     
    Join Date: Oct 2002
    Location: Timisoara, Romania
    Posts: 13,534
    cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+)
    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 Bancila
    Home 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.
    Reply With Quote
      #3    
    Old October 30th, 2009, 12:12 PM
    ahmd ahmd is offline
    Member
     
    Join Date: Feb 2009
    Posts: 318
    ahmd is an unknown quantity at this point (<10)
    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...
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Visual C++ Programming


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 03:29 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.