I want to know when a certain window from another program has the WS_VISIBLE flag set. How can I do that?
Thanks
Printable View
I want to know when a certain window from another program has the WS_VISIBLE flag set. How can I do that?
Thanks
If we assume you have the handle, I think by using the GetWindowLong API and the GWL_STYLE parameter, you should get the style of the window (part of which is the WS_VISIBLE flag. By doing a bitwise AND between the retrieved style and the WS_VISIBLE value, you should be able to determine if the flag is set.
Thanks!
IsWindowVisible API can do it to -- your preference.