enumwindows on window hidden to systray
-
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
-
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
u can use spy++ from visual studio tools to find any window handle. even minimized. if u know class and caption. for example. i'be minimized icq. so it doesnot enumarated. but i can c it in this tool. how to do it programatically. i think use FindWindow with known class and caption
-
u can use spy++ from visual studio tools to find any window handle. even minimized. if u know class and caption. for example. i'be minimized icq. so it doesnot enumarated. but i can c it in this tool. how to do it programatically. i think use FindWindow with known class and caption
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?
-
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?
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.
-
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.
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.
-
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.
-
I guess you don't understand the problem. thank you for your help anyway
-
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.
-
p.s. // i had outlook in system tray. HWND hwndOutlook = ::FindWindow(NULL, "Inbox - Microsoft Outlook"); // i got valid handle for this window.
-
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
EnumWindows()
will enumerate all top-level windows on the screen, whileEnumDesktopWindows()
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
-
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
...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.
-
p.s. // i had outlook in system tray. HWND hwndOutlook = ::FindWindow(NULL, "Inbox - Microsoft Outlook"); // i got valid handle for this window.
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
-
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