R
R
rundll322021-12-30 17:09:40
Windows
rundll32, 2021-12-30 17:09:40

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

1 answer(s)
B
BasiC2k, 2021-12-30
@rundll32

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.
61cde3212411e022136775.jpeg
WinAPI for all this is available, you just need to dig.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question