Share via

Can't detect control show?

D.D.K-2637 966 Reputation points
2023-04-27T16:53:30.9866667+00:00

Hi,

When using IUIAutomation I've noticed that sometimes it doesn't immediately recognize an open form or if this form appearance affects another control then I can't track that control.

I tried using setfocus/setforeground back but it sometimes doesn't work.

Is there a reliable way to refresh treeview UI?

How long do I need to wait for automation to fully change state?

Thanks you!

Windows development | Windows API - Win32
Developer technologies | C++
Developer technologies | C++

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.

0 comments No comments

Answer accepted by question author

Castorix31 91,876 Reputation points
2023-04-27T17:43:56.04+00:00

You can use Event Handlers : How to Implement Event Handlers

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.