0

I'm doing Surface Automation of an application. The Automation is asynchron. Sometimes, a Dialog window occures and locks the mainwindow for further Access.

I'm using C++ / Win32API, C# or VB. I can get the main window by the processID and want to find (or write) a function, giving me true or false if the main window is locked by an unexpected Dialog window.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
Jan021981
  • 521
  • 3
  • 28

1 Answers1

2

Modal windows disable their owner windows. So you need to call IsWindowEnabled on the main window.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490