I want to know when a certain window from another program has the WS_VISIBLE flag set. How can I do that?

Thanks