How to Dispaly Balloon in the system tray application?

Discussion in 'MFC' started by venki, Oct 31, 2006.

  1. venki

    venki New Member

    Joined:
    Oct 31, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    0
    Hi to All,

    Any one can help me, I created system tray application in vc++, I want display balloon message in the system tray icon but it's not support my OS (OS is XP Service Pack 2) then What Should I do?


    Thanks to All,

    With Regards
    Ramana AV
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Use [thread=343]Display a System Tray Icon in VC++[/thread] and use a new flag (available where _WIN32_IE >= 0x0500), NIF_INFO, which lets you display a balloon tip. The text goes in szInfo and the message in szInfoTitle.
     
  3. venki

    venki New Member

    Joined:
    Oct 31, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    0
    Actually I used visual c++6.0, so It's not available _WIN32_IE>=0x0500 in ' Shellapi.h' file, that header file available structure is :
    typedef struct _NOTIFYICONDATAA {
    DWORD cbSize;
    HWND hWnd;
    UINT uID;
    UINT uFlags;
    UINT uCallbackMessage;
    HICON hIcon;
    CHAR szTip[64];
    } NOTIFYICONDATAA, *PNOTIFYICONDATAA;

    What should I do?
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Upgrade yourself probably. Or you can design a window which looks like balloon
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice