0

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.

max
  • 1,020
  • 1
  • 15
  • 25

2 Answers2

0

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

Adam Rosenfield
  • 390,455
  • 97
  • 512
  • 589
  • 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 Sep 13 '09 at 05:17
  • 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 Sep 29 '09 at 11:41
0

This answer suggests using GetWindowPlacement().

Community
  • 1
  • 1
Dominic Jodoin
  • 2,538
  • 18
  • 21