Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Balloon on system tray

Balloon on system tray

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    capint
    wrote on last edited by
    #1

    I have a class allowing us to display a balloon but it requires an exact position or a handle of a ctr. But when I create an icon on system tray, I don't know how to get the position of the icon on system tray & with the handle of the icon I can't display the balloon exactly. So plz help me

    M I 2 Replies Last reply
    0
    • C capint

      I have a class allowing us to display a balloon but it requires an exact position or a handle of a ctr. But when I create an icon on system tray, I don't know how to get the position of the icon on system tray & with the handle of the icon I can't display the balloon exactly. So plz help me

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      Finding the position and dimensions of the Windows system tray[^]

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      1 Reply Last reply
      0
      • C capint

        I have a class allowing us to display a balloon but it requires an exact position or a handle of a ctr. But when I create an icon on system tray, I don't know how to get the position of the icon on system tray & with the handle of the icon I can't display the balloon exactly. So plz help me

        I Offline
        I Offline
        Iain Clarke Warrior Programmer
        wrote on last edited by
        #3

        You don't need to know the position of the icon - let the system do the work for you. You can use ShellNotifyIcon to show a popup balloon for you. Lookup the docs for the structure NOTIFYICONDATA, and look at NIF_INFO. I'm pretty sure there's an article or two here on the subject. Iain.

        Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

        C 1 Reply Last reply
        0
        • I Iain Clarke Warrior Programmer

          You don't need to know the position of the icon - let the system do the work for you. You can use ShellNotifyIcon to show a popup balloon for you. Lookup the docs for the structure NOTIFYICONDATA, and look at NIF_INFO. I'm pretty sure there's an article or two here on the subject. Iain.

          Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

          C Offline
          C Offline
          capint
          wrote on last edited by
          #4

          I've seen NOTIFYICONDATA & NIF_INFO but that balloon just appears when we start our application. I'd like to make it appear whenever we want (click on a button for example)... Help me again plz :sigh:

          C I 2 Replies Last reply
          0
          • C capint

            I've seen NOTIFYICONDATA & NIF_INFO but that balloon just appears when we start our application. I'd like to make it appear whenever we want (click on a button for example)... Help me again plz :sigh:

            C Offline
            C Offline
            capint
            wrote on last edited by
            #5

            Oh I found a solution, create another NOTIFYICONDATA & add it when we need :d Thanks alot

            1 Reply Last reply
            0
            • C capint

              I've seen NOTIFYICONDATA & NIF_INFO but that balloon just appears when we start our application. I'd like to make it appear whenever we want (click on a button for example)... Help me again plz :sigh:

              I Offline
              I Offline
              Iain Clarke Warrior Programmer
              wrote on last edited by
              #6

              Stored the NOTIFYICONDATA struct for later use (not essential, but makes life easy), tweak the NIF_INFO bits, and use Shell_NotifyIcon(NIM_MODIFY, ...) to do this later on... Iain.

              Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups