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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to refesh traywindow programtically

how to refesh traywindow programtically

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
8 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.
  • S Offline
    S Offline
    swarup
    wrote on last edited by
    #1

    suppose i delete or hide a icon from system tray, the icon gets removed but there is a blank space at that place, how can i refesh the tray or when i delet an icon how the tray should clean that blank space, any idea

    H M S 3 Replies Last reply
    0
    • S swarup

      suppose i delete or hide a icon from system tray, the icon gets removed but there is a blank space at that place, how can i refesh the tray or when i delet an icon how the tray should clean that blank space, any idea

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      See Shell Tray Info - Arrange your system tray icons[^] of course its not directly your answer but maybe its some helpfuls for you


      WhiteSky


      1 Reply Last reply
      0
      • S swarup

        suppose i delete or hide a icon from system tray, the icon gets removed but there is a blank space at that place, how can i refesh the tray or when i delet an icon how the tray should clean that blank space, any idea

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

        Are you using Shell_NotifyIcon(NIM_DELETE... to remove the icon?

        S 1 Reply Last reply
        0
        • M Mark Salsbery

          Are you using Shell_NotifyIcon(NIM_DELETE... to remove the icon?

          S Offline
          S Offline
          swarup
          wrote on last edited by
          #4

          no i am using SendMessage with TB_delete ( soemthing i dont remember now), i dont want to use sheelnotify cas i am deleting some other app icon,

          M 1 Reply Last reply
          0
          • S swarup

            no i am using SendMessage with TB_delete ( soemthing i dont remember now), i dont want to use sheelnotify cas i am deleting some other app icon,

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

            I don't know what you'd do then. The tray icons are tied to a HWND in the app they are associated with and that app also receives messages from the shell related to the icon. Doesn't the app have a setting to hide the tray icon? Good luck!

            S 1 Reply Last reply
            0
            • M Mark Salsbery

              I don't know what you'd do then. The tray icons are tied to a HWND in the app they are associated with and that app also receives messages from the shell related to the icon. Doesn't the app have a setting to hide the tray icon? Good luck!

              S Offline
              S Offline
              swarup
              wrote on last edited by
              #6

              hi mark, my doubt is , i am making a application which can hide or delet other icon present in system tray or tray noification area, when i delete an icon from there, the icon gets removed but there is blank space or empty space is there, how to refesh the tray or what i can do so tht when i remove or hide an icon, the icon as well as the empty space will also be removed, if you want the code i can post it here

              M 1 Reply Last reply
              0
              • S swarup

                hi mark, my doubt is , i am making a application which can hide or delet other icon present in system tray or tray noification area, when i delete an icon from there, the icon gets removed but there is blank space or empty space is there, how to refesh the tray or what i can do so tht when i remove or hide an icon, the icon as well as the empty space will also be removed, if you want the code i can post it here

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

                I have no ides. The icons belong to other apps so you may get them to disappear but that doesn't mean they've been removed.

                1 Reply Last reply
                0
                • S swarup

                  suppose i delete or hide a icon from system tray, the icon gets removed but there is a blank space at that place, how can i refesh the tray or when i delet an icon how the tray should clean that blank space, any idea

                  S Offline
                  S Offline
                  swarup
                  wrote on last edited by
                  #8

                  hi guys, i got the idea, if anyone needs help let me know i am willing to help my best.

                  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