Answer the question
In order to leave comments, you need to log in
Get all graphics windows?
I know about the EnumWindows function for iterating through all windows, but I'm interested in windows as window applications and consoles, and not in any invisible objects. Actually, how to determine whether a window is a window in the full sense of the word. You can suggest a method, but I will be very grateful for an example in C ++ \ C #. Thanks in advance!
Answer the question
In order to leave comments, you need to log in
As an option:
- get the Desktop handle;
- enum all desktop windows;
- select windows that have the WS_VISIBLE parameter in Styles;
The properties of the Notepad window in Spy++ looks like the screenshot below.
WinAPI for all this is available, you just need to dig.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question