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. enumwindows on window hidden to systray

enumwindows on window hidden to systray

Scheduled Pinned Locked Moved C / C++ / MFC
question
13 Posts 5 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.
  • N NikoTanghe

    The window is not minimized to the taskbar but to the systemtray. enumwindows finds minized windows to the taskbar but not when they are minimized to the tray. I use enumwindows instead of findwindow since it is more stable. I guess both functions do the same thing. yes, spy++ does find my window. How does spy++ finds its windows?

    4 Offline
    4 Offline
    4apai
    wrote on last edited by
    #4

    systemtray, taskbar - its not a big reason. in both cases main windows are hided. i won't dispute about stability, but as i said: use findwindow to get handle. u've caption and u've class, or u dont've? its quite complete info to use this function. or i dont understand your question.

    N 1 Reply Last reply
    0
    • 4 4apai

      systemtray, taskbar - its not a big reason. in both cases main windows are hided. i won't dispute about stability, but as i said: use findwindow to get handle. u've caption and u've class, or u dont've? its quite complete info to use this function. or i dont understand your question.

      N Offline
      N Offline
      NikoTanghe
      wrote on last edited by
      #5

      Yes, i have the caption. with enumwindows: - I find the window when its visible on screen. - I don't find the window when it is minimized to the tray. it is simply not listed when using the callback func.

      4 2 Replies Last reply
      0
      • N NikoTanghe

        Yes, i have the caption. with enumwindows: - I find the window when its visible on screen. - I don't find the window when it is minimized to the tray. it is simply not listed when using the callback func.

        4 Offline
        4 Offline
        4apai
        wrote on last edited by
        #6

        u dont listen to me. theme is closed.

        N 1 Reply Last reply
        0
        • 4 4apai

          u dont listen to me. theme is closed.

          N Offline
          N Offline
          NikoTanghe
          wrote on last edited by
          #7

          I guess you don't understand the problem. thank you for your help anyway

          1 Reply Last reply
          0
          • N NikoTanghe

            Yes, i have the caption. with enumwindows: - I find the window when its visible on screen. - I don't find the window when it is minimized to the tray. it is simply not listed when using the callback func.

            4 Offline
            4 Offline
            4apai
            wrote on last edited by
            #8

            p.s. // i had outlook in system tray. HWND hwndOutlook = ::FindWindow(NULL, "Inbox - Microsoft Outlook"); // i got valid handle for this window.

            M D 2 Replies Last reply
            0
            • 4 4apai

              p.s. // i had outlook in system tray. HWND hwndOutlook = ::FindWindow(NULL, "Inbox - Microsoft Outlook"); // i got valid handle for this window.

              M Offline
              M Offline
              Micie
              wrote on last edited by
              #9

              Using spy++ and find a class of the program. This is safer in my view, 'coz the caption may be changed by a program behaviour or other program. HWND hWindows = FindWindow("ProgClass", NULL) **__________ I'm made in C++... and I'm proud of it!_**

              1 Reply Last reply
              0
              • N NikoTanghe

                I want to find the windowhandle of a dialog application minimized to the system tray. enumwindow does not find the window, since the window is not visible. what should I do? gtz, Niko

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #10

                EnumWindows() will enumerate all top-level windows on the screen, while EnumDesktopWindows() will enumerate all top-level windows on a desktop.


                "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

                1 Reply Last reply
                0
                • N NikoTanghe

                  I want to find the windowhandle of a dialog application minimized to the system tray. enumwindow does not find the window, since the window is not visible. what should I do? gtz, Niko

                  B Offline
                  B Offline
                  Blake Miller
                  wrote on last edited by
                  #11

                  ...AND...If the system Tray OWNS the minimized window, then you can get the window handle of the system tray and try to enumerate the child windows of it. One of them is probably the window you want.

                  1 Reply Last reply
                  0
                  • 4 4apai

                    p.s. // i had outlook in system tray. HWND hwndOutlook = ::FindWindow(NULL, "Inbox - Microsoft Outlook"); // i got valid handle for this window.

                    D Offline
                    D Offline
                    David Crow
                    wrote on last edited by
                    #12

                    I think you are still confused between a minimized window and a hidden window. 4apai wrote: // i got valid handle for this window. Of course, because it was minimized, not hidden.


                    "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

                    4 1 Reply Last reply
                    0
                    • D David Crow

                      I think you are still confused between a minimized window and a hidden window. 4apai wrote: // i got valid handle for this window. Of course, because it was minimized, not hidden.


                      "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

                      4 Offline
                      4 Offline
                      4apai
                      wrote on last edited by
                      #13

                      ok. lets determine what window should call hidden and what should be call minimized? it looks like demagogy but as i see its necessary. i want to hear your oppinion!

                      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