tags:

views:

58

answers:

2

I noticed that AccExplorer (accessibility explorer) shows when controls are visible or invisible. How does it determine this? The api for MSAA does not have a IsVisible function. Any ideas?

Edit: IsWindowVisible does not actually tell you if it has been drawn or not. Even if something is 100% obscuring the window, IsWindowVisible can still return TRUE.

+1  A: 

You can test if a window (including controls) is visible with the standard IsWindowVisible() function.

Adam Rosenfield
Cool thanks. The problem was that I didn't know how to get the HWND from IAccessible pointer. I found WindowFromAccessibleObject so I'll be able to use IsWindowVisible.
max
IsWindowVisible() is not what I wanted because it returns true even when the object is not actually drawn onscreen. Is there a function that tells me if it actually was drawn or not?
max
A: 

This answer suggests using GetWindowPlacement().

Dominic Jodoin