Notification That A Button Is Available To Be Pressed?

  • Thread starter Thread starter a_unique_name
  • Start date Start date
A

a_unique_name

Guest
Hello Folks:

Developing on Windows 10 Pro, Visual Studio 2017 Community, all C++.

I think I've asked this a couple of years ago, but I'm not finding it in this account's activity list.

I want to test a program by simulating inputs to it's user interface from a second thread. Letting the program run through it's paces at ten or a hundred keystrokes and button pushes a second for a day or a week should be interesting.

The issue I have right now is that at certain points the application will pop up dialogs with buttons that need pressing. The timing for the button pressed is proving to be a problem.

The application's dialog posts a message to the simulator that the page is up. The GetDlgItem(<app_dialog_handle>, <button_id>) call from the simulator returns non NULL.

But the button isn't actually displayed yet and misses the press from the simulator.

Is there a simple way to know if a dialog has finished drawing all of its controls and is ready to receive notifications for them?

Thanks
Larry

Continue reading...
 
Back
Top